Mike Rodriguez
unread,Sep 28, 2009, 5:39:57 PM9/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Oracle Service Bus
Hey again Jeff
First of all
Hello!! How had you been! Hope everything it's just quite fine!
Well right now I'm still learning, you know. As usual every new
project has a new challenge.
Right now I'm facing a picky issue.
I'm trying to transform a XML. The issue that I see in here is that
this XML isn't well defined, I'm not saying unwell formed, because it
has the right tags in the right place.
What I'm facing is that one tag contains another tag, but there is no
attribute or value that could relate them.
Imagine something like this
<mainTag>
<oneFather>
<oneSon>
<firstValue>15</firstValue>
<secondValue>Hello</secondValue>
<anotherSon>
<someOther>This is a sample<someOther>
</anotherSon>
</oneSon>
</oneFather>
<oneFather>
<oneSon>
<firstValue>25</firstValue>
<secondValue>Wassup</secondValue>
<anotherSon>
<someOther>This is a sample for testing<someOther>
</anotherSon>
</oneSon>
</oneFather>
</mainTag>
And well based on that I want to know, because I'm pretending to
create an XML like this
<newMainTag>
<theFirstValues>
<firstIteration>15</firstIteration>
<secondIteration>25</secondIteration>
</theFirstValues>
<someOtherThing>
<secondValues>
<firstIteration>
<value>Hello</value>
<valueTwo>This is a sample</valueTwo>
</firstIteration>
<secondIteration>
<value>Wassup</value>
<valueTwo>This is a sample for testing</valueTwo>
</secondIteration>
</secondValues>
</someOtherThing>
</newMainTag>
What I just can't understand "how to do it" it's, if I don't have any
item to relate and understand wich <oneSon> I'm mapping to the
<firstIteration> and <secondIteration> how could I do it.
Could be possible to know in wich row you're standing on the "for"
loop?
I mean, my question will be, could this be done by XQuery?
Please help me out, I had been trying a couple of things but I just
can't...
You know I'll always be thankful!!
Have a gr8 day!!
Greetings!
Mike