How can I get a Node adjacent to a unique Node using Scala?

Posted by pr1001 on Stack Overflow See other posts from Stack Overflow or by pr1001
Published on 2010-05-10T14:35:45Z Indexed on 2010/05/10 15:34 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

I'm trying to parse an Apple plist file and I need to get an array Node within it. Unfortunately its only unique identifier is sibling Node right before it, <key>ProvisionedDevices</key>. Right now my best thoughts are to use Java's XPATH querying or Node.indexOf.

Here is an example:

<plist version="1.0">
       <dict>
               <key>ApplicationIdentifierPrefix</key>
               <array>
                       <string>RP8CBF4MRE</string>
               </array>
               <key>CreationDate</key>
               <date>2010-05-10T11:44:35Z</date>
               <key>DeveloperCertificates</key>
               <array>
               ...
               <key>ProvisionedDevices</key>
               <array>
               ... // I need the Nodes here
               </array>
       </dict>
</plist>

Thanks!

© Stack Overflow or respective owner

Related posts about scala

Related posts about Xml