mysql - Using VB.net to write an Ebay Motors Pro xml file -


I am struggling to do this work and for example it has come to know how to profit without benefiting it Not done. I am converting a mysql resultset into an XML file to upload to ebaymotorspro I thought it would be relatively simple and still I am struggling with conventions set by both eBay and Net Framework.

The opening element of the file is to read:

  & lt; Empro xmlns = "blur: mobile: amp: list: xml: uk: car" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "vase: D: mobile : AMP: Inventory: XML: UK: Car http://www.ebaymotorspro.co.uk/schema/empro-car-uk.xsd">   

I am using the xmlwriter class to recreate it and it has done so far:

  Author using XMLRR = XMLR Author (feedfile, xmlsettings) as author. The Authentic Document (True) Writer. WRITEStartElement ("empro", "Color: D: mobile: inventory: xml: uk: car") 'This bit problem is causing the author. WrititeAttributeString ("xmlns", "xsi", "http: //www.w3.org/2001/XMLScema-instance") end use   

I have the following code in the xml file Ends:

  & lt; Empro p1: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: p1 = "xmlns" xmlns = "blur: mobile: emp: list: xml: uk: car" / & gt;   

Which is not correct, can someone tell me the correct output to create the right document headers in the right direction?

Many thanks Graham

that part should cause you trouble WriteAttributeString () Overload:

  'This bit problem is causing the problem' author. Merge unbreakable string ("xmlns", "xsi", nothing, "http://www.w3.org/2001/XMLScema-instance")   

Anyway, I personally I will use this. VB also has unique features that do not have C # to create XML: with Xml LTTLS embedded expression support. For example:

  String = "Patrick Hans" less contact as a slow contact name XElement = & lt; Contact & gt; & Lt;% = contactName% & gt; & Lt; / Contact & gt; Console.lightline (contact.tostring ()) 'output:' '& lt; Contact & gt; Patrick Haynes & lt; / Contact & gt;   

Source:

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -