Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an XML file

XML
<root>
<attach1> .... </attach1>
<attach2> .... </attach2>
</root>


I am creating to validate schema. But I did not know the exact count of attach and every node will be in increment form. SO i want to check the name as Partial string.

What I have tried:

I am not getting anything. This is my first time.
Posted
Updated 23-Jan-17 23:04pm
v3
Comments
Patrice T 24-Jan-17 5:03am    
Why do you need to number the "attach" elements ?
<root>
<attach> .... </attach>
<attach> .... </attach>
</root>
Nabin Jha 24-Jan-17 5:08am    
its client requirement. as they are attachments for one main root. so for numbering they are using count.
Patrice T 24-Jan-17 5:22am    
And why not this ?
<root>
<attach number="1"> .... </attach>
<attach number="2"> .... </attach>
</root>
Nabin Jha 27-Jan-17 0:33am    
Actually that not possible..I asked to them they said it will be like this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900