|
|
|
Supreme Being
      
участник
Last Login: 09.08.2006 1:01
Сообщ.: 83,
Visits: 887
|
|
| How to make the following XML file in VB.NET <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE labels SYSTEM "label.dtd"> <labels> <label _FORMAT="C:\Documents and Settings\will\Desktop\XMLFILES\Oracle\LPN.fmt" _QUANTITY="1" _DUPLICATES="1" _PRINTERNAME="z4m"> <variable name="lpn">123456789012345678</variable> <variable name="organization">123</variable> </label> </labels> Thanks, Vladimir
|
|
|
|
|
Supreme Being
      
администратор
Last Login: 13.11.2007 13:41
Сообщ.: 4 421,
Visits: 49 251
|
|
| см. System.Xml.XmlTextWriter
|
|
|
|
|
Supreme Being
модератор
Last Login: 04.05.2008 13:32
Сообщ.: 7 240,
Visits: 65 445
|
|
|
|
|
|
Supreme Being
      
участник
Last Login: 09.08.2006 1:01
Сообщ.: 83,
Visits: 887
|
|
| yah yah I have those links too but I am looking for someone sho can provide with with code (vb.net or c#) which creates axactly the xml example I've provided in my initial post.
|
|
|
|
|
Supreme Being
модератор
Last Login: 04.05.2008 13:32
Сообщ.: 7 240,
Visits: 65 445
|
|
| С помощью вышеприведенной ссылки код для создания данного XML файла можно сделать минут за 5 не больше. Так что не ленись и самостоятельно решай задачу.
|
|
|
|
|
Supreme Being
      
участник
Last Login: 09.08.2006 1:01
Сообщ.: 83,
Visits: 887
|
|
| Yes you are right but I couldot get the following lin in my output xml the following line New XmlTextWriter("c:\myxml.xml", Encoding.UTF8)gives me <?xml version="1.0" encoding="utf-8"?> but I need another see the next line - <?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
|
|
|
Supreme Being
модератор
Last Login: 04.05.2008 13:32
Сообщ.: 7 240,
Visits: 65 445
|
|
| Чтобы вывести атрибут standalone="no" воспользуйся методом WriteStartDocument в аргументом равным False. myXmlTextWriter = new XmlTextWriter("c:\myxml.xml", Encoding.UTF8) myXmlTextWriter.WriteStartDocument(False)
|
|
|
|
|
Supreme Being
      
участник
Last Login: 09.08.2006 1:01
Сообщ.: 83,
Visits: 887
|
|
|
|
|