Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very short xml code. Please help.

Status
Not open for further replies.

Alexzor

Programmer
Mar 27, 2008
3
0
0
US
Can you please see if this code is correct? I am trying to create xml file that can be used to verify the user role based on user name. I am creating a formula in the Infopath and using this file as a datasource (lookup fields). However, I am receiving an error all the time: "../ns2:roles/ns2:role/ns2:roles/ns2:role/ns2:users/ns2:username" does not point to a valid location path of a field or group".
Please help


<?xml version="1.0"?>
<roles xmlns=" <role>
<name>Sales</name>
<users>
<username>Johnson</username>
<username>Doe</username>
<username>Moore</username>
<username>Smith</username>
</users>
</role>
</roles>
 
>"../ns2:roles/ns2:role/ns2:roles/ns2:role/ns2:users/ns2:username"
This is definitely pointing to nowhere.

The absolute path to the group of username is this:
[tt] "/ns2:roles/ns2:role/ns2:users/ns2:username"[/tt]

If you're at the context of "name" node, using ../etc, it is this.
[tt] "../ns:users/ns:username"[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top