How to give xpath expression in java using axiom

Posted by user1811206 on Stack Overflow See other posts from Stack Overflow or by user1811206
Published on 2012-11-13T10:58:12Z Indexed on 2012/11/13 10:59 UTC
Read the original article Hit count: 305

Filed under:
|
|
<resource name="cde.xml" status="updated" isCollection="false">
            <mediaType>xml</mediaType>
            <creator>admin</creator>
            <createdTime>1352783477964</createdTime>
            <lastUpdater>admin</lastUpdater>
            <lastModified>1352783477964</lastModified>
            <description />
            <version>0</version>
            <content>ZGFza2QgbGQgbGt2Zmx3ZGFzamQgYWRsa2ogYWxramRrbGEgamQK
            </content>
        </resource>

i want to catch nodes which are having status using xpath here is the xpath expression other part of the code is correct. I have problem with xpath expression

AXIOMXPath xpathExpression = new AXIOMXPath ( "//resourse[@name]");

© Stack Overflow or respective owner

Related posts about java

Related posts about xpath