[thelist] XML - EXCLUDE statements - re-post

Hardacker, Andrew Andrew.Hardacker at Compuware.com
Wed Jul 24 22:23:24 CDT 2002


<snip>
Hope you don't mind me re-posting this query. Just wondering if I need
to write each <EXCLUDE> tag separately (as pictured below) for each excluded
directory ... or is their a "shorthand" way of doing this separating each
dir by delimiters and including all in one <EXCLUDE></EXCLUDE> tag?
...
.
> Am putting together a P3P Policy for a client and haven't worked in XML
before. I'd like to write multiple EXCLUDE statements and am wondering if I
need to put an open and close tag for each directory I want to exclude, as
follows:
>
> <POLICY-REF about="/p3p/DBpolicy.xml">
>       <INCLUDE>/*</INCLUDE>
>       <COOKIE-INCLUDE/>
>       <EXCLUDE>/bubbleforms*</EXCLUDE>
>       <EXCLUDE>/cgi-bin*</EXCLUDE>
>       <EXCLUDE>/faq*</EXCLUDE>
>       <EXCLUDE>/files*</EXCLUDE>
>       <EXCLUDE>/zip*</EXCLUDE>
>
</snip>

Sharon, this is the correct XML format (assuming you'll close the parent
element with</POLICY-REF>). There is no "shorthand".

Any other format would have to be described in the XML schema, which you can
find at http://www.w3.org/TR/P3P/

More P3P info: http://www.w3.org/P3P/details.html
There's also an online P3P validator here:
http://www.w3.org/P3P/validator.html

HTH

Andy Hardacker





The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.




More information about the thelist mailing list