By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,638 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

Couldn't find end tag. Line number: 12. Column number: 32

P: 2
I am getting the end couldn't error while validating xml file against xsd.
The xml file looks perfect.

XML:

<event id="1">
<!--
Successful event.
-->
<AffectedBillingComponentsRequest
xmlns:qb = "http://www.qwest.com/XMLSchema/BIM"
xmlns = "http://www.qwest.com/XMLSchema">
<qb:RequestId>1</qb:RequestId>
<qb:RequestPurpose>
<qb:Code>RL</qb:Code>
</qb:RequestPurpose>
<BillingComponentGroup>
<qb:BillingComponentId>USAGE</qb:BillingComponentId>
<qb:BillingCharacteristicDeterminant>
<qb:FieldId>product_acct_id</qb:FieldId>
<qb:FieldValue>111110</qb:FieldValue>
</qb:BillingCharacteristicDeterminant>
<qb:BillingCharacteristicDeterminant>
<qb:FieldId>pacg_occurrence_number</qb:FieldId>
<qb:FieldValue>1</qb:FieldValue>
</qb:BillingCharacteristicDeterminant>
<qb:BillingCharacteristicDeterminant>
<qb:FieldId>event_dt</qb:FieldId>
<qb:FieldValue>11/30/1993</qb:FieldValue>
</qb:BillingCharacteristicDeterminant>
<qb:BillingAttributeInstance>
<qb:BillingAttributeId>PRNTSE1</qb:BillingAttributeId>
<qb:BillingAttributeValue>1</qb:BillingAttributeValue>
</qb:BillingAttributeInstance>
</BillingComponentGroup>
</AffectedBillingComponentsRequest>
</event>


XSD:

<xsd:group name="BillingComponentGroup">
<xsd:annotation>
<xsd:documentation>
This group defines a structure that contains a billing
component id, billing charge element ids and related
BillingCharacteristicInstance and
BillingCharacteristicDeterminant.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="SequenceId" minOccurs="0" />
<xsd:element ref="qb:BillingComponentId" />
<xsd:element ref="qb:BillingChargeElementId" minOccurs="0"
maxOccurs="unbounded" />
<xsd:element ref="qb:BillingCharacteristicInstance"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="qb:BillingCharacteristicDeterminant"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element ref="qb:BillingAttributeInstance" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:group>


<xsd:complexType name="AffectedBillingComponentsRequestT">
<xsd:annotation>
<xsd:documentation>
This request takes a list of attributes that have
changed as well as the relevant customer information.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="qb:RequestT">
<xsd:sequence>
<xsd:group ref="BillingComponentGroup"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:extension>

</xsd:complexContent>
</xsd:complexType>



ERROR:

<event id=1>
<qb:ResponseT xmlns:qb="http://www.qwest.com/XMLSchema/BIM">
<qb:MessageStatus>
<qb:ErrorCode>F</qb:ErrorCode>
<qb:ErrorMessage>processMessage. Parse error when unmarshaling : Couldn't find end tag. Line number: 12. Column number: 3
2. Request=

&lt;!--
Successful event.
--&gt;
&lt;AffectedBillingComponentsRequest
xmlns:qb = "http://www.qwest.com/XMLSchema/BIM"
xmlns = "http://www.qwest.com/XMLSchema"&gt;
&lt;qb:RequestId&gt;1&lt;/qb:RequestId&gt;
&lt;qb:RequestPurpose&gt;
&lt;qb:Code&gt;RL&lt;/qb:Code&gt;
&lt;/qb:RequestPurpose&gt;
&lt;BillingComponentGroup&gt;
&lt;qb:BillingComponentId&gt;USAGE&lt;/qb:BillingComponentId&gt;
&lt;qb:BillingCharacteristicDeterminant&gt;
&lt;qb:FieldId&gt;product_acct_id&lt;/qb:FieldId&gt;
&lt;qb:FieldValue&gt;111110&lt;/qb:FieldValue&gt;
&lt;/qb:BillingCharacteristicDeterminant&gt;
&lt;qb:BillingCharacteristicDeterminant&gt;
&lt;qb:FieldId&gt;pacg_occurrence_number&lt;/qb:FieldId&gt;
&lt;qb:FieldValue&gt;1&lt;/qb:FieldValue&gt;
&lt;/qb:BillingCharacteristicDeterminant&gt;
</qb:ErrorMessage>
<qb:SrcSystem/>
<qb:TransactionStatus>F</qb:TransactionStatus>
</qb:MessageStatus>
</qb:ResponseT>
</event>
Nov 27 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.