MySQL Forums
Forum List  »  Connector/Node.js

Extracting root-level attribute values
Posted by: Alex Vilner
Date: August 31, 2010 12:47PM

Dear netters,

We are parsing out XML data, using ExtractValue.
An example of what needs to be parsed is below:

<BinaryParameterType name="frameSyncType" shortDescription="Frame Synchronization Field" initialValue="0934">
<LongDescription><This is a long description</LongDescription>
<BinaryDataEncoding bitOrder="mostSignificantBitFirst">
<SizeInBits>
<FixedDecimalValue>13</FixedDecimalValue>
</SizeInBits>
</BinaryDataEncoding>
</BinaryParameterType>

Using extractValue, one can specify the Xpath as:
/BinaryParameterType/LongDescription
or
/BinaryParameterType/BinaryDataEncoding
or
/BinaryParameterType/BinaryDataEncoding/SizeInBits
...

However, how does one extract actual BinaryParameterType attributes, like name, shortDescription and initialValue?

Thank you for your help!

--Alex

Options: ReplyQuote


Subject
Written By
Posted
Extracting root-level attribute values
August 31, 2010 12:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.