Author |
Message
|
dilse |
Posted: Wed Dec 12, 2007 9:51 am Post subject: XML Declaration in Java compute node |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Hi All,
I may be asking a dumb question but I couldnt find any info on this anywhere(neither in infocenter nor in forum)
How do you do the XML Declaration in JCN that is equivalent to the following ESQL.
Code: |
-- Create an XML Declaration
SET OutputRoot.XML.(XML.XmlDecl) = '';
-- Set the Version within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
-- Set the Encoding within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8'; |
Any input is appreciated.
TIA.
DilSe.. |
|
Back to top |
|
 |
dilse |
Posted: Wed Dec 12, 2007 1:40 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
I think a lot of people did this already. Please shed some light on this. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Dec 12, 2007 2:15 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Don't use XML domain, it's deprecated.
Use XMLNS instead.
The XML Declaration is a "parser specific type". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Dec 12, 2007 2:28 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
dilse |
Posted: Wed Dec 12, 2007 3:38 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Thanks for your response. Sorry Guys.. That was a typo to use XML as Parser which I never intended but my question was more around how to do the XML Declaration in Java Compute Node as I did not see any samples around this but I will try Jeff's suggestions to see if it works.
Thanks
DilSe.. |
|
Back to top |
|
 |
kiruthigeshwar |
Posted: Tue Jan 29, 2013 11:28 pm Post subject: |
|
|
Acolyte
Joined: 31 Oct 2012 Posts: 50
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jan 30, 2013 5:13 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
kiruthigeshwar |
Posted: Wed Jan 30, 2013 9:32 pm Post subject: |
|
|
Acolyte
Joined: 31 Oct 2012 Posts: 50
|
lancelotlinc wrote: |
This is a really useful post. Do you think dilse found his answer in the last six years? |
At least this should be helpful for those who search for this topic hereafter. |
|
Back to top |
|
 |
|