Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@XMLNODES - New behavior?

Jun
26
0
I have a sample file source.xml:

XML:
<?xml version="1.0" encoding="UTF-8"?>
<Instructors>
    <Instructor Dept_ID="123">
       <Name First="John" Last="Doe">Doe, John</Name>
    </Instructor>
    <Instructor Dept_ID="456">
       <Name First="Jane" Last="Doe">Doe, Jane</Name>
    </Instructor>
</Instructors>

Last year the following script returned 2. This morning it returns 0. What am I doing wrong?
Code:
@echo off

SET a=%@XMLOPEN[source.xml]
SET b=%@XMLNODES[/Instructors]        

echo %b

SET c=%@XMLCLOSE[]
 
I can confirm that.

Code:
v:\> d:\tc26\tcc.exe /c v:\xmltest.btm
2

v:\> d:\tc27\tcc.exe /c v:\xmltest.btm
0
 

Similar threads

Back
Top