Hi,
I need to generate an XML document which has a root element. I am able to get the rest of the document except the root element. I have checked the best practices document. Did not get much help. I feel I am missing something here.How do I obtain this root element using the XML output stage. Kindly suggest
Thanks.
root element in XML document
Moderators: chulett, rschirm, roy
OK, that much I know, was looking for something more... specific, example wise.
Not sure why you're not getting that unless you've enabled the 'chunk' (off the top of my head) property or left off the leading slash. Perhaps it might help to post the XPath Expressions you are using?
Not sure why you're not getting that unless you've enabled the 'chunk' (off the top of my head) property or left off the leading slash. Perhaps it might help to post the XPath Expressions you are using?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Below is the format required :
<note ElementID="x">
- <Table>
<MANDT>n1</MANDT>
<MATNR>n2</MATNR>
<SPRAS>n3</SPRAS>
<MAKTX>n4</MAKTX>
<MAKTG>n5</MAKTG>
</Table>
- </Table>
<MANDT>p1</MANDT>
<MATNR>p2</MATNR>
<SPRAS>p3</SPRAS>
<MAKTX>p4</MAKTX>
<MAKTG>p5</MAKTG>
</Table>
'
'
'
'
'
'
-</note >
what xpath expressions do i need to use for the root(arrayofmaterialdescriptions). Here note is the root element and Table is the child element, whch has the other elements.
I am unable to get the root element.
<note ElementID="x">
- <Table>
<MANDT>n1</MANDT>
<MATNR>n2</MATNR>
<SPRAS>n3</SPRAS>
<MAKTX>n4</MAKTX>
<MAKTG>n5</MAKTG>
</Table>
- </Table>
<MANDT>p1</MANDT>
<MATNR>p2</MATNR>
<SPRAS>p3</SPRAS>
<MAKTX>p4</MAKTX>
<MAKTG>p5</MAKTG>
</Table>
'
'
'
'
'
'
-</note >
what xpath expressions do i need to use for the root(arrayofmaterialdescriptions). Here note is the root element and Table is the child element, whch has the other elements.
I am unable to get the root element.
The root is usually going to be the first string in your Description property on the input link of your XMLOutput Stage...... EVERY column will have the same value for that first string.....so, I would exect, in your job, to see every Description starting with /arrayofmaterialdescriptions/...
Sometimes, when the repetition isn't right you will get incorrectly get duplicates of your desired root, but you should always get the string....
Ernie
Sometimes, when the repetition isn't right you will get incorrectly get duplicates of your desired root, but you should always get the string....
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>