Exclude field with no value

This should cover W3C XML Schema, Relax NG and DTD related problems.
fpanganiban
Posts: 1
Joined: Sat Mar 28, 2020 5:22 am

Exclude field with no value

Post by fpanganiban » Sat Mar 28, 2020 5:25 am

What's the right XML code if I need to exclude data with null value in certain field?

<Field SystemID=“FieldName” [ Code I need] />

I tried these but I'm getting an eror:
<Field SystemID=“FieldName” Value!=“” />
<Field SystemID=“FieldName” Value<>”” />
<Field SystemID=“FieldName” xsi:nil=“false” />

adrian
Posts: 2686
Joined: Tue May 17, 2005 4:01 pm

Re: Exclude field with no value

Post by adrian » Mon Mar 30, 2020 10:37 am

Hi,

You posted on the XML Schemas board, but this doesn't look like an XML schema.
I'm not sure what type of "XML code" you are referring to. What you're looking for may be specific to the tool handling the XML. It doesn't look like an XML standard, but rather a configuration file that uses XML syntax. To what what tool are you feeding this "XML code".

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply