473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do i remove xmlns:xsd when serialize?

Hello

How can i control the serialize result?
I dont need <?xml version="1.0" encoding="utf-8" ?> and
"xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

in the following example:

<?xml version="1.0" encoding="utf-8" ?>
<Message xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<info>
<id>0</id>
</info>
</Message>
Jul 21 '05 #1
2 2368
are you using the XmlSerializer?

--
-----
fragmente einer flugbahn - http://emvoid.de

"Julia" <co********@012.net.il> schrieb im Newsbeitrag
news:ez**************@TK2MSFTNGP09.phx.gbl...
Hello

How can i control the serialize result?
I dont need <?xml version="1.0" encoding="utf-8" ?> and
"xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

in the following example:

<?xml version="1.0" encoding="utf-8" ?>
<Message xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<info>
<id>0</id>
</info>
</Message>

Jul 21 '05 #2
Yes

"Matthias Steinbart" <postamt@_REMOVEME_emvoid.de> wrote in message
news:ug**************@TK2MSFTNGP09.phx.gbl...
are you using the XmlSerializer?

--
-----
fragmente einer flugbahn - http://emvoid.de

"Julia" <co********@012.net.il> schrieb im Newsbeitrag
news:ez**************@TK2MSFTNGP09.phx.gbl...
Hello

How can i control the serialize result?
I dont need <?xml version="1.0" encoding="utf-8" ?> and
"xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

in the following example:

<?xml version="1.0" encoding="utf-8" ?>
<Message xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<info>
<id>0</id>
</info>
</Message>


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ksampson | last post by:
I simply want to generate an XML document. I want the root element to include an attribute like <rootElement xmlns:xsd="http://someurl"> .... </rootElement> --- With: <xsl:element...
0
by: chris.stromberger | last post by:
New to SOAP. I am working on something that uses the paypal web services. All the examples have this as the first portion of the soap doc <?xml version="1.0" encoding="UTF-8"?>...
1
by: PMCG | last post by:
Hi I am using the XMLSerializer class to serialize a custom class into a memory stream whose contents i then pass to a MSSQL SP that uses the sp_xml_preparedocument SP, i can serialize the class but...
4
by: Shailendra Batham | last post by:
Hi guys,Does any1 know what this error is all about, what I am trying to do is deserialize a XML, below is my code, let me know what I am doing wrongpublic class test{xin = "<?xml version='1.0'...
2
by: Julia | last post by:
Hello How can i control the serialize result? I dont need <?xml version="1.0" encoding="utf-8" ?> and "xmlns:xsd=http://www.w3.org/2001/XMLSchema...
3
by: Keith Patrick | last post by:
I'm doing some document merging where I want to bring in an XmlDocument and import its document element into another document deeper in its tree. However, when serializing my underlying objects,...
8
by: Les Caudle | last post by:
Using this command line to run XSD.exe xsd /c /o:outputDir input.xsd /f on the following XSD <?xml version="1.0"?> <schema xmlns="http://www.w3.org/2001/XMLSchema"...
4
by: BorisBoshond | last post by:
Hi all, Hope someone is able and willing to help me with following problem. I received a xsd file from another company, our company i supposed to return xml based on that xsd. Problem is that I...
2
by: =?ISO-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello, I use Xml serialization to serialize an object into an xml file. My root tag is defined as following:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.