Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8880683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:12:27+00:00 2026-06-14T20:12:27+00:00

Example : In test.xml, I have <head> <file name=input> <above> <tag point=x/> </above> <below>

  • 0

Example : In test.xml, I have

   <head>
    <file name="input">
        <above>
              <tag point="x"/>
        </above>
        <below> 
              <result first="00"/>
        </below>
    </file>
    <file name="output">
        <above> 
              <tag point="y"/> 
        </above>
        <below> 
              <result first="11"/> 
        </below>
    </file>
   </head>

I should read this XML in batch script where i should get value “11” .
This “11” is found inside tag in tag in .

I have to get only the value “11” in the above specified path.

This is an example where in a real scenario there can be different value in place of “11”.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:12:28+00:00Added an answer on June 14, 2026 at 8:12 pm
    FOR /F tokens^=2^ delims^=^" %%A in ('find "result first=" test.xml') do echo:%%A
    

    or in command prompt:

    fOR /F tokens^=2^ delims^=^" %A in ('find "result first=" test.xml') do echo:%A
    

    this will work only if the structure of your file is as this above (specifically the new lines).
    Better use xml startlet http://xmlstar.sourceforge.net/ . More info about the trick with the for – >

    http://ss64.org/viewtopic.php?id=1544

    http://ss64.org/viewtopic.php?id=1572

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML example <?xml version=1.0?> <test> <items> <item>item 1</item> <item>item 2</item>
This is an example XML file that would come from the Android Client. <test>
I have one file (for example: test.txt), this file contains some lines and for
A test sample of my xml file is shown below: test.xml <feed> <entry> <title>Link
How can I zip an XML file in Ruby? For example i have a
Let's say I have this url: www.example.com/test.php?page=4 How do i retrieve the value of
I am having a xml file as input to the xsl file. When i
I have a little XML Problem. I have a XML with for example 7
Let's suppose I have an XML file like this: <?xml version=1.0 encoding=ISO-8859-1?> <MIDIFile> <Event>
Let's suppose we have the XML file with the structure as follows. <?xml version=1.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.