Liquid XML Data Binder (C++, Java, VB6) / Using the Code / Changing the exported XML / Removing the comments from the exported XML.
In This Topic
    Removing the comments from the exported XML.
    In This Topic

    Problem

    By default the liquid XML libraries place a comment (or banner) into the XML that they export.
    This banner is not always wanted

    <?xml version="1.0"?> <!--Created by Liquid XML Data Binding Libraries (www.liquid-technologies.com) for Liquid Technologies Limited--> <SearchRequest xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"> <PriceFilter> <MaxPrice>9.99</MaxPrice> </PriceFilter> <NameFilter>coldplay</NameFilter> </SearchRequest>

    Resolution

    This banner can be removed from the Output XML, by calling the NoBanner Method

    Sample Code

      C++

    LtXmlLib20::NoBanner();

      C#

    LiquidTechnologies.Runtime.Net40.XmlObjectBase.NoBanner = true;

      Java

    com.liquid_technologies.ltxmllib20.XmlObjectBase.noBanner();

      Visual Basic

    NoBanner

     

    Notes

    Description Value
    Article Created 6/2/2006
    Relates to Versions Liquid XML 2005 and greater