Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2008

Tip: Looking for answers? Try searching our database.

XML error in infopath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ashley - 11 Mar 2008 18:33 GMT
I am getting this error and I am trying to include this xml file in the
form.  I got this xml example from infopathdev.com
vehicle/cascading/repeating table.  What could be wrong and why is it doing
this? This is my error i am getting....

The form contains XML that cannot be parsed:
A name contained an invalid character.

Line 3, Position 15
   <Divisions="01-000 General Conditions" CSI Codes="01-050
Reimbursables"/>
--------------^
Greg Collins - 12 Mar 2008 18:02 GMT
Your XML node attributes connot contain the space character:

<Divisions="01-000 General Conditions" CSI Codes="01-050 Reimbursables"/>

Should be something like:

<Divisions="01-000 General Conditions" CSI_Codes="01-050 Reimbursables"/>

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

Diane - 12 Mar 2008 21:12 GMT
Thank you for your response, however it did not correct the = character - i
believe that is where the error is coming form.  I have made sure it was the
correct format. In the postings its pointing to the reimbursable, in the
orginail error it was pointing to the = character.  It taken me hours to do
this xml file.  grr.  Thank you for your time.

> Your XML node attributes connot contain the space character:
>
[quoted text clipped - 3 lines]
>
> <Divisions="01-000 General Conditions" CSI_Codes="01-050 Reimbursables"/>
Greg Collins - 18 Mar 2008 00:30 GMT
Doh! I should have noticed that too. Your XML was representative of a
non-named element with attributes in it--which is not allowed. If you took
the attributes out, the element would have been left as:

<>

So you would need to name the element:

<ElementName Divisions="01-000 General Conditions" CSI_Codes="01-050
Reimbursables"/>

And as mentioned before, space characters are not allowed in attribute
names.

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.