A
ad
I want to determinate if a xml is well-format and valid before export it to
database.
We can determinate if xml is valid from the article:
http://support.microsoft.com/kb/307379/en-us?ln=en-us&sd=gn&fr=0
But how can we determine if a xml is well-format?
like the xml below is not well format(the end tag of ProductName)
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE Product SYSTEM "Product.dtd">
<Product ProductID="123">
<ProductName>Rugby jersey</ProductNameaa>
</Product>
database.
We can determinate if xml is valid from the article:
http://support.microsoft.com/kb/307379/en-us?ln=en-us&sd=gn&fr=0
But how can we determine if a xml is well-format?
like the xml below is not well format(the end tag of ProductName)
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE Product SYSTEM "Product.dtd">
<Product ProductID="123">
<ProductName>Rugby jersey</ProductNameaa>
</Product>