Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-19-2013, 02:42 PM   PM User | #1
frustratedsigh
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
frustratedsigh is an unknown quantity at this point
invalid xml - help?

Very new to XML.. as in like 5 minutes ago. I need to use an xml document for an infopath form I am doing which will be hosted on Sharepoint. I am doing cascading dropdowns.

Essentially, when a user selects a "Mission Area," the "Domain" dropdown should change listing all options for that mission area. Here's the code I devised:

Code:
<?xml version="1.0" encoding="UTF-8"?>
	<Domains>
	<Domain MissionArea="Business">BUS - Acquisition</Domain>
	<Domain MissionArea="Business">BUS - Financial Management</Domain>
	<Domain MissionArea="Business">BUS - HUman Capital Management</Domain>
	<Domain MissionArea="Business">BUS - Installations & Environment</Domain>
	<Domain MissionArea="Business">BUS - Logistics</Domain>

	<Domain MissionArea="Enterprise Infrastructure Environment">EIE - Communications</Domain>
	<Domain MissionArea="Enterprise Infrastructure Environment">EIE - Computing Infrastructure</Domain>
	<Domain MissionArea="Enterprise Infrastructure Environment">EIE - Core Enterprise Services</Domain>
	<Domain MissionArea="Enterprise Infrastructure Environment">EIE - IA</Domain>

	<Domain MissionArea="War Fighter">WAR - Battle Space Awareness</Domain>
	<Domain MissionArea="War Fighter">WAR - C2</Domain>
	<Domain MissionArea="War Fighter">WAR - Force Applications</Domain>
	<Domain MissionArea="War Fighter">WAR - Force Logistics</Domain>
	<Domain MissionArea="War Fighter">WAR - Force Management</Domain>
	<Domain MissionArea="War Fighter">WAR - Force Protection</Domain>
	<Domain MissionArea="War Fighter">WAR - Joint Training</Domain>
	<Domain MissionArea="War Fighter">WAR - Net Centric</Domain>

	</Domains>

However, it says that it is invalid. Is there something wrong with my syntax? I attempted a validation on W3S and received the same invalid error.

Thanks in advance.

Last edited by VIPStephan; 02-19-2013 at 09:51 PM.. Reason: set to “resolved”
frustratedsigh is offline   Reply With Quote
Old 02-19-2013, 02:54 PM   PM User | #2
frustratedsigh
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
frustratedsigh is an unknown quantity at this point
Oops.. never mind. Had an ampersand in there. Solved.
frustratedsigh is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:51 PM.


Advertisement
Log in to turn off these ads.