Skip to main content

Forms scripting using formatting tags in XML

In this article, we explore using XML in forms for fixed text, field, and section-level guidance.

Y
Written by Yusef Abulaynain
Updated over 4 months ago

Extensible Markup Language (XML) can be used in forms in fixed text and field level or section level guidance in Mosaic forms. Below are some examples.

Create a simple, empty paragraph and initialize XML code

πŸ“Œ Note: The formatting to be added must be contained between the 3rd and 4th lines in the below (before </ns6:Para>) See Examples section toward the bottom of this article for formatting.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FormattedText xmlns="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common">
<ns6:Para xmlns:ns2="http://corelogic.co.uk/mosaic/dto/form/jaxb/form"
xmlns:ns4="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/print"
xmlns:ns3="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/screen"
xmlns:ns5="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform"
xmlns:ns6="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common"
xmlns:ns7="http://intechsolutions.com.au/soap2/"
xmlns:ns8="http://www.w3.org/2004/08/xop/include">
</ns6:Para>
</FormattedText>

Add a bullet point list

<ns6:BulletList>
<ns6:BulletPoint>Point1</ns6:BulletPoint>
<ns6:BulletPoint>Point2</ns6:BulletPoint>
</ns6:BulletList>

Add a numbered list

<ns6:NumberedList>
<ns6:BulletPoint>Point1</ns6:BulletPoint>
<ns6:BulletPoint>Point2</ns6:BulletPoint>
</ns6:NumberedList>

Add a link to external resource (like a government website)

<ns6:Link url="http://hyperlinkAddress"> Name of link to appear </ns6:Link>

Add a new paragraph

<ns6:Para>New paragraph is started</ns6:Para>

Add bold text

<ns6:Bold>Text to be bold</ns6:Bold>

Add italic text

<ns6:Italic>Text to be italic</ns6:Italic>

Add a line break

<LineBreak xmlns=""/>

Create simple, fixed, bold text

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FormattedText xmlns="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common">
<ns6:Para xmlns:ns2="http://corelogic.co.uk/mosaic/dto/form/jaxb/form"
xmlns:ns4="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/print"
xmlns:ns3="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/screen"
xmlns:ns5="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform"
xmlns:ns6="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common"
xmlns:ns7="http://intechsolutions.com.au/soap2/"
xmlns:ns8="http://www.w3.org/2004/08/xop/include">
<ns6:Bold>Text to be bold</ns6:Bold>
</ns6:Para>
</FormattedText>

Bullet point list with bold label

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FormattedText xmlns="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common">
<ns6:Para xmlns:ns2="http://corelogic.co.uk/mosaic/dto/form/jaxb/form"
xmlns:ns4="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/print"
xmlns:ns3="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/screen"
xmlns:ns5="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform"
xmlns:ns6="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common"
xmlns:ns7="http://intechsolutions.com.au/soap2/"
xmlns:ns8="http://www.w3.org/2004/08/xop/include">
<ns6:Bold> This label will be bold </ns6:Bold>
<ns6:BulletList>
<ns6:BulletPoint>Point1</ns6:BulletPoint>
<ns6:BulletPoint>Point2</ns6:BulletPoint>
<ns6:BulletPoint>Point4</ns6:BulletPoint>
</ns6:BulletList>
</ns6:Para>
</FormattedText>

Nested bullet point lists (3 levels)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<FormattedText xmlns="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common">
<ns6:Para xmlns:ns2="http://corelogic.co.uk/mosaic/dto/form/jaxb/form"
xmlns:ns4="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/print"
xmlns:ns3="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/screen"
xmlns:ns5="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform"
xmlns:ns6="http://corelogic.co.uk/mosaic/dto/form/jaxb/moform/view/common"
xmlns:ns7="http://intechsolutions.com.au/soap2/"
xmlns:ns8="http://www.w3.org/2004/08/xop/include">
<ns6:BulletList>
<ns6:BulletPoint> Point 1
<ns6:BulletList>
<ns6:BulletPoint>Point 1 A</ns6:BulletPoint><ns6:BulletPoint>Point 1 B</ns6:BulletPoint>
<ns6:BulletPoint>Point 1 C</ns6:BulletPoint>
</ns6:BulletList>
</ns6:BulletPoint>
<ns6:BulletPoint> Point 2 </ns6:BulletPoint>
<ns6:BulletPoint> Point 3
<ns6:BulletList>
<ns6:BulletPoint>Point 3 A</ns6:BulletPoint><ns6:BulletPoint>Point 3 B</ns6:BulletPoint>
<ns6:BulletPoint>Point 3 C
<ns6:BulletList>
<ns6:BulletPoint>Point 3 C-1</ns6:BulletPoint>
<ns6:BulletPoint>Point 3 C-2</ns6:BulletPoint>
</ns6:BulletList>
</ns6:BulletPoint>
</ns6:BulletList>
</ns6:BulletPoint>
</ns6:BulletList>
</ns6:Para>
</FormattedText>
Did this answer your question?