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">

Using extractValue, one can specify the Xpath as:

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

Thank you for your help!


Options: ReplyQuote

Written By
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.