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 » Unable to include '-' in the tags while generating XML

Post new topic  Reply to topic
 Unable to include '-' in the tags while generating XML « View previous topic :: View next topic » 
Author Message
m.arunprasad1
PostPosted: Tue Mar 05, 2013 3:48 am    Post subject: Unable to include '-' in the tags while generating XML Reply with quote

Novice

Joined: 11 Feb 2013
Posts: 19

I am using WMB V6.0.2 and I am trying to generate a XML file which should look like this:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns1:[b]intra11-declarations[/b] xmlns:ns1="http://www.mff.sov.cy">
   <ns1:[b]intra11-declaration[/b] taxpayer="99200041U" version="2010-1.0">
      <ns1:period month="9" year="2012"/>
      <ns1:[b]total-rows[/b]>173</ns1:total-rows>
      <ns1:row number="1">
         <ns1:[b]goods-code[/b]>62043390</ns1:goods-code>
         <ns1:[b]origin-country-code[/b]>GB</ns1:origin-country-code>
         <ns1:[b]from-country-code[/b]>AE</ns1:from-country-code>
         <ns1:[b]transfer-type-code[/b]>5</ns1:transfer-type-code>
         <ns1:[b]transaction-type-code[/b]>11</ns1:transaction-type-code>
         <ns1:[b]statistic-type-code[/b]>10</ns1:statistic-type-code>
         <ns1:price>9</ns1:price>
         <ns1:[b]delivery-term-code[/b]>DDP</ns1:[b]delivery-term-code[/b]>
         <ns1:[b]statistic-value[/b]>9</ns1:[b]statistic-value[/b]>
         <ns1:mass>0</ns1:mass>
         <ns1:[b]additional-units[/b]>1</ns1:[b]additional-units[/b]>
      </ns1:row>
   </ns1:intra11-declaration>
</ns1:intra11-declarations>


I am unable to use '-' in the name of the root tag/tag (Eg: intra11-declarations).

Please help me..
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 05, 2013 3:59 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I am unable to use '-' in the name of the root tag/tag (Eg: intra11-declarations).
Must be annoying for you
Back to top
View user's profile Send private message
m.arunprasad1
PostPosted: Tue Mar 05, 2013 4:10 am    Post subject: Reply with quote

Novice

Joined: 11 Feb 2013
Posts: 19

I am getting the below error:



Syntax error. Valid options include: = NAME NAMESPACE TYPE VALUE
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 05, 2013 4:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

So you are seeing an error in the Problems view while editing your ESQL. How did you expect anybody to guess that? Next time, please provide enough information for us to at least understand *some* of the problem.

The solution is to put quotes around the root element name.
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Tue Mar 05, 2013 4:33 am    Post subject: Re: Unable to include '-' in the tags while generating XML Reply with quote

Master

Joined: 04 Oct 2010
Posts: 220
Location: Somewhere in the World....

m.arunprasad1 wrote:
I am unable to use '-' in the name of the root tag/tag (Eg: intra11-declarations).

Please help me..


HOW do you tried ?? >>
Back to top
View user's profile Send private message
wmbmqted
PostPosted: Tue Mar 05, 2013 4:43 am    Post subject: Reply with quote

Newbie

Joined: 16 Jan 2013
Posts: 5

Try to put element name into "" . (Eg: "intra11-declarations").
Back to top
View user's profile Send private message
m.arunprasad1
PostPosted: Tue Mar 05, 2013 5:32 am    Post subject: Reply with quote

Novice

Joined: 11 Feb 2013
Posts: 19

Quote:
HOW do you tried ?? >>


nukalas2010: I tried to put the tags within a single quote..

Quote:
Try to put element name into "" . (Eg: "intra11-declarations").


Quote:
The solution is to put quotes around the root element name.


It worked after using " "(Double Quotes).. Such a simple solution

Thanks to Kimbert & wmbmqted
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 » Unable to include '-' in the tags while generating XML
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.