Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - how to entity microsoft datatype ? >Thread Next - Re: how to entity microsoft datatype ? Re: how to entity microsoft datatype ?To: NULL Date: 4/2/2008 9:01:00 PM
"smartcatiboy" <jx_sinooa@s...> wrote in message
news:uMMhTgPlIHA.2368@T......
> hi,
> I like to use ms_datatype , but the xmlns string is too long , and making
> the xml files huge.
> So , I look for using ENTITY to reduce the size . I try the method below ,
> but failed , can any body help me out ?
>
> My try:
> <?xml version="1.0" encoding="gb2312"?>
> <!DOCTYPE root[
> <!ELEMENT root ANY>
> <!ENTITY msdt 'xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt'>
> ]>
> <root>
> <myint &msdt;="int">123</myint>
> <myint &msdt;="int">234</myint>
> </root>
>
Had you considered this:-
<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<myint dt:dt="int">123</myint>
You only need to define the namespace once on a parent element and it will
apply for all descendants.
--
Anthony Jones - MVP ASP/ASP.NET
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
