问题
I HAVE some problem in XPATH In XML Output
I Want The Output Like
<categories>
<category NAME="A">
<redcord a="1"></redcord>
<redcord a="2"></redcord>
</category>
<category NAME="B">
<redcord b="ASD"></redcord>
<redcord b="QWE"></redcord>
</category>
</categories>
I HAVE XPATH LIKE :
/categories/category[@NAME="A"]/redcord/@a
AND
/categories/category[@NAME="B"]/redcord/@b
The Output that i've been making is
<categories>
<category NAME="A">
<redcord a="1" b="ASD"></redcord>
<redcord a="2" b="QWE"></redcord>
</category>
</categories>
Anyone have any idea how to make the XML format as i wanted above? Fyi : I'm using Oracle Database , Datastage
来源:https://stackoverflow.com/questions/59607487/how-change-the-xpath-and-xml-output-format-in-datastage