Author |
Message
|
m.arunprasad1 |
Posted: Tue Mar 05, 2013 3:48 am Post subject: Unable to include '-' in the tags while generating XML |
|
|
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 |
|
 |
kimbert |
Posted: Tue Mar 05, 2013 3:59 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 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 |
|
 |
m.arunprasad1 |
Posted: Tue Mar 05, 2013 4:10 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Tue Mar 05, 2013 4:32 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 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 |
|
 |
nukalas2010 |
Posted: Tue Mar 05, 2013 4:33 am Post subject: Re: Unable to include '-' in the tags while generating XML |
|
|
 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 |
|
 |
wmbmqted |
Posted: Tue Mar 05, 2013 4:43 am Post subject: |
|
|
Newbie
Joined: 16 Jan 2013 Posts: 5
|
Try to put element name into "" . (Eg: "intra11-declarations"). |
|
Back to top |
|
 |
m.arunprasad1 |
Posted: Tue Mar 05, 2013 5:32 am Post subject: |
|
|
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 |
|
 |
|