- Open the file
- Select "XML" from the top menu and select "Pretty-print" or press <F11>
Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts
Wednesday, 15 January 2014
Format xml file automatically
Use the free XML Copy Editor
Tuesday, 17 January 2012
XML CDATA
- All text in an XML document will be parsed by the parser.
- Characters like "<" and "&" are illegal in XML elements.
- But text inside a CDATA section will be ignored by the parser.
A CDATA section starts with "<![CDATA[" and ends with "]]>":
e.g.
<script>
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1;
}
else
{
return 0;
}
}
]]>
</script>
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1;
}
else
{
return 0;
}
}
]]>
</script>
- A CDATA section cannot contain the string "]]>".
- Nested CDATA sections are not allowed.
Friday, 13 January 2012
How do get the current date in XSL
I am trying to filter out the expired items in an XML file using XSLT... I almost have it done except the last step of how to get the current date (to use to compare the endDate attribute in the xml node)...
It seems it is impossible to do it pure in the client side.
It seems it is impossible to do it pure in the client side.
Ways to display XML data on browser
- Open the xml file from IE
- Open XML file from IE using XSL
- Use jQuery to load the whole XML file into a container
- Use jQuery to parse the XML file into a container
- Display the XML file (with/without XSL) in an iframe tag of the HTML file
e.g. <iframe src="test.xml" scrolling="no" frameborder="0"></iframe>
Subscribe to:
Posts (Atom)