N
neeraja.ram
Hello All,
I am just learning XML. I need your help in converting a text file to
XML. The text file is not a delimited one for me to do the things
easily.
for eg. a sample file could be like...
First Name : abcd
Last Name : xyz
Content : This is a sample text. It can contain
- Anything
- something
- Nothing
Start Time : 12/08/2006 14:50
The XML should be like
<Root>
<FirstName>abcd</FirstName>
<LastName>xyz</LastName>
<Content>This is a sample text. It can contain
- Anything
- something
- Nothing
</Content>
<STime>12/08/2006 14:50</STime>
</Root>
And with this XML, i need to use XSL to display the contents in a table
(HTML Format). Except the other elements, i find difficult to parse the
"Content" as i need to display as it is. When i use <value-of
select="Content">, i get the contents in a single line but i need to
display it as it is in multiple lines
Thanks in advance for your help.
Regards,
Neeraja
I am just learning XML. I need your help in converting a text file to
XML. The text file is not a delimited one for me to do the things
easily.
for eg. a sample file could be like...
First Name : abcd
Last Name : xyz
Content : This is a sample text. It can contain
- Anything
- something
- Nothing
Start Time : 12/08/2006 14:50
The XML should be like
<Root>
<FirstName>abcd</FirstName>
<LastName>xyz</LastName>
<Content>This is a sample text. It can contain
- Anything
- something
- Nothing
</Content>
<STime>12/08/2006 14:50</STime>
</Root>
And with this XML, i need to use XSL to display the contents in a table
(HTML Format). Except the other elements, i find difficult to parse the
"Content" as i need to display as it is. When i use <value-of
select="Content">, i get the contents in a single line but i need to
display it as it is in multiple lines
Thanks in advance for your help.
Regards,
Neeraja