ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invalid Document Structure line 1 column 1

Post new topic  Reply to topic
 Invalid Document Structure line 1 column 1 « View previous topic :: View next topic » 
Author Message
mangoMan
PostPosted: Thu Sep 23, 2004 12:16 pm    Post subject: Invalid Document Structure line 1 column 1 Reply with quote

Acolyte

Joined: 16 Oct 2003
Posts: 69

I think I have a valid XML document. But everytime I send it through my flow I get the following error:

Quote:

2004-09-23 13:54:55.241794 6076 ParserException BIP5009E: XML Parsing Errors have occurred.
Errors have occurred during parsing of XML.
Review further error messages for an indication to the cause of the errors.
2004-09-23 13:54:55.241832 6076 ParserException BIP5004E: XML parsing error (Invalid document structure) encountered on line 1 column 1 while parsing element .
The above error was reported by the generic XML parser.
This message is usually caused by a badly-formed XML message. Check that the XML message being passed in is a well-formed XML message that adheres to the XML specification. Note that the line number and column number quoted above give the position where the parser discovered the problem. The actual error may be earlier in the message. Internal error codes : (182), ().


Why is it giving me this silly error? It does not matter if I use the MRM or the XMLNS parser, I get the same error each time.

Here is my XML:



Here is my xml
Quote:

<?xml version="1.0" encoding="UTF-8"?>
<ShippingRequest xmlns="http://www.lion.com/OrderFulfillment" >
<CustomerDetails accountId="" extBillingId="">
<Name>Name</Name>
<Contacts>
<MainContact>
<ContactName>ContactName</ContactName>
<ContactTelNo>ContactTelNo</ContactTelNo>
<ContactEmail>ContactEmail</ContactEmail>
</MainContact>
</Contacts>
</CustomerDetails>
<BillingAddress>
<StreetAddress>StreetAddress</StreetAddress>
<City>City</City>
<State>State</State>
<ZIP>ZIP</ZIP>
<CountryCode>CountryCode</CountryCode>
</BillingAddress>
<ShippingAddress>
<Name>Name</Name>
<StreetAddress>StreetAddress</StreetAddress>
<City>City</City>
<State>State</State>
<ZIP>ZIP</ZIP>
<CountryCode>CountryCode</CountryCode>
<ResidentialAddress>true</ResidentialAddress>
</ShippingAddress>
<OrderType>OrderType</OrderType>
<CustomerAccountId>CustomerAccountId</CustomerAccountId>
<NetworkAdmin>
<UserName>UserName</UserName>
<Password>Password</Password>
</NetworkAdmin>
<ShipMethod>ShipMethod</ShipMethod>
<ShippingType>ShippingType</ShippingType>
<Carrier>Carrier</Carrier>
<OrderTimestamp>2001-12-31T12:00:00MST</OrderTimestamp>
<ReturnLabel>ReturnLabel</ReturnLabel>
<LetterCode>LC</LetterCode>
<SaturdayDelivery>true</SaturdayDelivery>
<AddTNs>
<NewTNs>
<TNCollection>
<TN Port="0" TNType="">TN</TN>
</TNCollection>
<TNPremiumFeature name="" value=""/>
</NewTNs>
<NewVirtualTNs>
<TNCollection>
<TN Port="0" TNType="">TN</TN>
</TNCollection>
<TNPremiumFeature name="" value=""/>
</NewVirtualTNs>
</AddTNs>
<OrderItem>
<LineNumber>0</LineNumber>
<SKU>SKU</SKU>
<Quantity>0</Quantity>
</OrderItem>
</ShippingRequest>
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 23, 2004 12:41 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is there really a blank line before "<xml>"?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mangoMan
PostPosted: Thu Sep 23, 2004 12:43 pm    Post subject: Reply with quote

Acolyte

Joined: 16 Oct 2003
Posts: 69

No there is no blank like before "<xml>"?
Back to top
View user's profile Send private message
siliconfish
PostPosted: Thu Sep 23, 2004 1:36 pm    Post subject: Reply with quote

Master

Joined: 12 Aug 2002
Posts: 203
Location: USA

I have tested your messages - it worked fine for me
Back to top
View user's profile Send private message
mangoMan
PostPosted: Thu Sep 23, 2004 1:53 pm    Post subject: Reply with quote

Acolyte

Joined: 16 Oct 2003
Posts: 69

Thank you siliconfish. I figured out the problem. I had hidden chars in front of "<xml>". So I need to thank jefflowrey as well for he got me thinking about that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Invalid Document Structure line 1 column 1
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.