Click here to Skip to main content
15,910,224 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionVB6 Or Visual Studio - MFC CC++ Pin
sweep12319-Jun-06 0:37
sweep12319-Jun-06 0:37 
AnswerRe: VB6 Or Visual Studio - MFC CC++ Pin
Paddy Boyd19-Jun-06 3:24
Paddy Boyd19-Jun-06 3:24 
Questionvalidating XML document against an XML schema Pin
lupin9918-Jun-06 18:29
lupin9918-Jun-06 18:29 
AnswerRe: validating XML document against an XML schema Pin
BoneSoft19-Jun-06 4:41
BoneSoft19-Jun-06 4:41 
QuestionXpath invalid token with concat Pin
Duncan Sample16-Jun-06 0:25
Duncan Sample16-Jun-06 0:25 
QuestionHow Retrive XML File in Memory Streams !!!! [modified] Pin
HatakeKaKaShi15-Jun-06 17:14
HatakeKaKaShi15-Jun-06 17:14 
QuestionCreating An XML file In MemoryStream (Urgent ! ) [modified] Pin
HatakeKaKaShi15-Jun-06 16:25
HatakeKaKaShi15-Jun-06 16:25 
AnswerRe: Creating An XML file In MemoryStream (Urgent ! ) Pin
BoneSoft16-Jun-06 11:33
BoneSoft16-Jun-06 11:33 
There are a few things there... You're not closing all your elements, or starting or closing the document. And for reasons I don't understand, XmlDoc.Load(stream) doesn't work, but if you use a StreamReader to read it and output that to a string, XmlDoc with LoadXml() fine. Also, before reading you have to set the stream's Position to 0. Sorry, my answer's in C#, but it should be difficult to convert to VB...

MemoryStream m = new MemoryStream();
XmlDocument XmlDoc = new XmlDocument();

//Add
System.Xml.XmlTextReader reader = new XmlTextReader(m);

XmlTextWriter textWriter = new XmlTextWriter(m, System.Text.Encoding.UTF8);

// Start document
textWriter.WriteStartDocument(true);

textWriter.WriteStartElement("ns0", "HCNET_ACK_Root", "http://HoHOHo.PCNET.IB.Schema.ExternalSchema.PCNET_ACK");
textWriter.WriteStartElement("BVN");
textWriter.WriteStartElement("SendingPerson", "");
textWriter.WriteString("Terry");
textWriter.WriteEndElement();
textWriter.WriteEndElement();

// Close everything
textWriter.WriteEndElement();
textWriter.WriteEndDocument();
textWriter.Flush();
m.Position = 0;

System.IO.StreamReader sreader = new StreamReader(m);
string xml = sreader.ReadToEnd();

textWriter.Close();
reader.Close();

XmlDoc.LoadXml(xml);


Visit BoneSoft.com
QuestionRead a XML Document and extract a node value Pin
chandler8314-Jun-06 5:51
chandler8314-Jun-06 5:51 
AnswerRe: Read a XML Document and extract a node value Pin
Elina Blank20-Jun-06 3:25
sitebuilderElina Blank20-Jun-06 3:25 
AnswerRe: Read a XML Document and extract a node value Pin
braber29-Jun-06 7:27
braber29-Jun-06 7:27 
QuestionHow do you get XSL to just read any element? Pin
Red_Wizard_Shot_The_Food14-Jun-06 4:41
Red_Wizard_Shot_The_Food14-Jun-06 4:41 
AnswerRe: How do you get XSL to just read any element? Pin
Dustin Metzgar14-Jun-06 4:45
Dustin Metzgar14-Jun-06 4:45 
Questionremove a table with xsl Pin
Yustme14-Jun-06 4:13
Yustme14-Jun-06 4:13 
AnswerRe: remove a table with xsl Pin
Elina Blank14-Jun-06 4:38
sitebuilderElina Blank14-Jun-06 4:38 
GeneralRe: remove a table with xsl Pin
Yustme14-Jun-06 4:41
Yustme14-Jun-06 4:41 
GeneralRe: remove a table with xsl Pin
Elina Blank14-Jun-06 4:53
sitebuilderElina Blank14-Jun-06 4:53 
QuestionHow to validate one file using multiple schemas? Pin
Arve Bjørnerud14-Jun-06 1:58
Arve Bjørnerud14-Jun-06 1:58 
QuestionAlmost there! [modified] Pin
Arve Bjørnerud15-Jun-06 2:54
Arve Bjørnerud15-Jun-06 2:54 
Questionknow the size of DOM Pin
myvisualcplusplus13-Jun-06 19:34
myvisualcplusplus13-Jun-06 19:34 
QuestionDiff functionality for xml Pin
anidarsha13-Jun-06 19:07
anidarsha13-Jun-06 19:07 
QuestionPassing XML Data To SQL Tables Using Classic ASP Pin
rowdykuttan13-Jun-06 7:42
rowdykuttan13-Jun-06 7:42 
QuestionRead xml file into dataset (without any xml schema) [modified] Pin
kishoregolla13-Jun-06 3:59
kishoregolla13-Jun-06 3:59 
QuestionXML Programming on Pocket PC Pin
bluehai9-Jun-06 22:40
bluehai9-Jun-06 22:40 
Questionsoap comunication Pin
joana.sa.couto9-Jun-06 3:51
joana.sa.couto9-Jun-06 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.