XML error in infopath

A

Ashley

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"/>
--------------^
 
G

Greg Collins

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"/>
 
D

Diane

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.
 
G

Greg Collins

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top