Results 1 to 4 of 4
  1. #1
    vijayvcs is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Post How can we write case insensitive queries for Xpath xml parsing

    Please follow the given xml code below.

    Consider a xml file with parameter and values like


    <Book>
    <Name>ABC</NAME>
    <Value>123</Value>
    </Book>
    <book>
    <Name>EFG</Name>
    <Value>456</Value>
    </book>
    <bOOK>
    <Name>XYZ</Name>
    <Value>789</Name>
    </bOOK>

    In Java,
    How can we write a single Xpath query to parse all the book blocks in single expression.
    Please let me know if anybody can help me with this.

    Regards,
    Vijay

  2. #2
    vijayvcs is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    <config>
    <Book>
    <Name>ABC</Name>
    <Value>123</Value>
    </Book>
    <book>
    <Name>EFG</Name>
    <Value>456</Value>
    </book>
    <bOOK>
    <Name>XYZ</Name>
    <Value>789</Value>
    </bOOK>
    </config>


    Regards,
    Vijay

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

  4. #4
    vijayvcs is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Post Hello Norm

    Please check, I have updated the corrected xml code.

Similar Threads

  1. xpath question
    By Ed in forum XML
    Replies: 1
    Last Post: 07-09-2007, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •