Click here to Skip to main content
16,011,436 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionadd XSL Mouse Over to elements Pin
mgmail2-Dec-05 3:45
mgmail2-Dec-05 3:45 
AnswerRe: add XSL Mouse Over to elements Pin
tylikeatcn27-Dec-05 2:08
tylikeatcn27-Dec-05 2:08 
QuestionSort XML Elements? Pin
Robert M Greene1-Dec-05 17:37
Robert M Greene1-Dec-05 17:37 
AnswerRe: Sort XML Elements? Pin
Sushant_Mathur1-Dec-05 20:10
Sushant_Mathur1-Dec-05 20:10 
GeneralRe: Sort XML Elements? Pin
Robert M Greene2-Dec-05 5:09
Robert M Greene2-Dec-05 5:09 
GeneralRe: Sort XML Elements? Pin
sreejith ss nair2-Dec-05 6:07
sreejith ss nair2-Dec-05 6:07 
QuestionXML without end tags and FPML import Pin
satish2229-Nov-05 0:36
satish2229-Nov-05 0:36 
AnswerRe: XML without end tags and FPML import Pin
Curtis Schlak.29-Nov-05 13:05
Curtis Schlak.29-Nov-05 13:05 
I don't know any FPML import apps.

However, I can answer a question for you: If you have a file with tags that don't contain end tags, then you don't have an XML file.

If you have a half-baked, XML-like file with something like what you have listed in your post, <parent1><tag1></><tag2></>..., then you can do the following:
Initialize a stack
Open an input stream from your file
Open an output stream for the result
While you have not reached the end of the input stream
  Read a character
  Write the character to the output stream
  If the character is "<"
    Read the next character
    If the character is a letter, then
      Keep reading until you reach a ">", saving the characters
      Push that string onto a stack
      Write that string to the output stream
    Else if the character is a "/"
      Write a "/" to the output stream
      Pop the top string from your stack and write it to the output stream


"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
QuestionXML Borland C++ Pin
Cyrux7727-Nov-05 19:30
Cyrux7727-Nov-05 19:30 
AnswerRe: XML Borland C++ Pin
DavidNohejl29-Nov-05 3:09
DavidNohejl29-Nov-05 3:09 
QuestionReading XML file with C# Pin
Cyberdudes24-Nov-05 2:48
Cyberdudes24-Nov-05 2:48 
AnswerRe: Reading XML file with C# Pin
Christian Graus24-Nov-05 17:08
protectorChristian Graus24-Nov-05 17:08 
AnswerRe: Reading XML file with C# Pin
T1TAN2-Dec-05 13:41
T1TAN2-Dec-05 13:41 
AnswerRe: Reading XML file with C# Pin
Cyberdudes4-Dec-05 21:46
Cyberdudes4-Dec-05 21:46 
Questionhow to check element exists or not???? Pin
Sushant_Mathur23-Nov-05 2:02
Sushant_Mathur23-Nov-05 2:02 
AnswerRe: how to check element exists or not???? Pin
Denevers10-Dec-05 9:42
Denevers10-Dec-05 9:42 
QuestionXML digital signature processing rules and syntax Pin
Colin Angus Mackay22-Nov-05 6:03
Colin Angus Mackay22-Nov-05 6:03 
QuestionHow to read attribute of an element Pin
oohungoo20-Nov-05 16:48
oohungoo20-Nov-05 16:48 
AnswerRe: How to read attribute of an element Pin
Sushant_Mathur22-Nov-05 0:54
Sushant_Mathur22-Nov-05 0:54 
QuestionDyanamic menu using XML Pin
Shaji Raghavan19-Nov-05 23:47
Shaji Raghavan19-Nov-05 23:47 
Questionunparsed external entity question Pin
DJS817-Nov-05 12:31
DJS817-Nov-05 12:31 
QuestionRegarding CSS Pin
gauravbajaj15-Nov-05 0:37
gauravbajaj15-Nov-05 0:37 
Questionforce XML to get validated against an XSD schema? Pin
Roman Nurik13-Nov-05 18:01
Roman Nurik13-Nov-05 18:01 
QuestionHow to use &quot;&amp;nbsp;&quot; in *.xsl file Pin
oohungoo13-Nov-05 16:15
oohungoo13-Nov-05 16:15 
AnswerRe: How to use &amp;amp;amp;quot;&amp;amp;amp;amp;nbsp;&amp;amp;amp;quot; in *.xsl file Pin
Sushant_Mathur14-Nov-05 0:33
Sushant_Mathur14-Nov-05 0:33 

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.