Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Thu, 3 Apr 2008 03:30:55 +0800,    group: microsoft.public.xml        back       


how to entity microsoft datatype ?   
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>


thanks.
date: Thu, 3 Apr 2008 03:30:55 +0800   author:   smartcatiboy

Re: how to entity microsoft datatype ?   
"smartcatiboy"  wrote in message
news:uMMhTgPlIHA.2368@TK2MSFTNGP03.phx.gbl...
> 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
date: Wed, 2 Apr 2008 21:01:08 +0100   author:   Anthony Jones

Re: how to entity microsoft datatype ?   
got it , thanks
date: Thu, 3 Apr 2008 09:43:06 +0800   author:   smartcatiboy

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us