Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Only one value is shown in drop down

Hali_George
Level 2
Level 2

I am populating a PDF Drop Down from an XML file. However, only one value is shown in the drop down.

My XML file is as below:

<?xml version="1.0" encoding="utf-8"?>
<currentPositions>
    <Position>Devoloper</Position>
    <Position>Tester</Position>                     
</currentPositions>

My Schema is as below:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:element name="jobApplicationData">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="positionInformation">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Position" type="xs:string"/>
                            <xs:element name="employmentType" type="xs:string"/>
                            <xs:element name="applicationDate" type="xs:string"/>        
                            <xs:element name="salaryExpectation" type="xs:float"/>
                            <xs:element name="startDate" type="xs:date"/>
                            <xs:element name="applicationStatus" type="xs:string"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="applicantInformation">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="personalInformation">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="applicantName" type="xs:string"/>
                                        <xs:element name="applicantAddress" type="xs:string"/>
                                        <xs:element name="applicantCity" type="xs:string"/>
                                        <xs:element name="applicantState" type="xs:string"/>
                                        <xs:element name="applicantZip" type="xs:string"/>
                                        <xs:element name="applicantHomePhone" type="xs:string"/>
                                        <xs:element name="applicantCellPhone" type="xs:string"/>
                                        <xs:element name="applicantGovID" type="xs:string"/>
                                        <xs:element name="applicantEmail" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="reliabiliityCheck">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="driversLicense" type="xs:string"/>
                                        <xs:element name="driversLicenseStateProv" type="xs:string"/>
                                        <xs:element name="accidents" type="xs:string"/>
                                        <xs:element name="accidentsVal" type="xs:int"/>
                                        <xs:element name="violations" type="xs:string"/>
                                        <xs:element name="violationsVal" type="xs:int"/>
                                        <xs:element name="crimes" type="xs:string"/>
                                        <xs:element name="explanation" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="education">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="highSchool" type="xs:string"/>
                                        <xs:element name="highSchoolYears" type="xs:int"/>
                                        <xs:element name="highSchoolMajor" type="xs:string"/>
                                        <xs:element name="college" type="xs:string"/>
                                        <xs:element name="collegeYears" type="xs:int"/>
                                        <xs:element name="collegeMajor" type="xs:string"/>
                                        <xs:element name="professional" type="xs:string"/>
                                        <xs:element name="professionalYears" type="xs:int"/>
                                        <xs:element name="professionalMajor" type="xs:string"/>
                                        <xs:element name="other" type="xs:string"/>
                                        <xs:element name="otherYears" type="xs:int"/>
                                        <xs:element name="otherMajor" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="skillSummary" maxOccurs="unbounded" minOccurs="0">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="skill" type="xs:string"/>
                                        <xs:element name="skillSummary" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="references" maxOccurs="unbounded" minOccurs="0">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="referenceName" type="xs:string"/>
                                        <xs:element name="referencePosition" type="xs:string"/>
                                        <xs:element name="referenceCompany" type="xs:string"/>
                                        <xs:element name="referencePhone" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="employmentHistory" maxOccurs="unbounded" minOccurs="0">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="employer" type="xs:string"/>
                                        <xs:element name="position" type="xs:string"/>
                                        <xs:element name="fromDate" type="xs:date"/>
                                        <xs:element name="toDate" type="xs:date"/>
                                        <xs:element name="duties" type="xs:string"/>
                                        <xs:element name="supervisor" type="xs:string"/>
                                        <xs:element name="contactYN" type="xs:string"/>
                                        <xs:element name="address" type="xs:string"/>
                                        <xs:element name="telephone" type="xs:string"/>
                                        <xs:element name="reasonForLeaving" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="officeUseOnly">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="managerName" type="xs:string"/>
                            <xs:element name="applicationID" type="xs:string"/>                           
                            <xs:element name="baseSalary" type="xs:float"/>
                            <xs:element maxOccurs="unbounded" name="currentPosition">
                                <xs:complexType>
                                    <xs:sequence> 
                                        <xs:element name="Position" type="xs:string"/>
                                    </xs:sequence>
                                </xs:complexType>
                               </xs:element>
                            <xs:element name="interviewDate" type="xs:date"/>
                            <xs:element name="actualStartDate" type="xs:date"/>
                            <xs:element name="userDefined1" type="xs:string"/>
                            <xs:element name="userDefined2" type="xs:string"/>
                            <xs:element name="userDefined3" type="xs:string"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

Please suggest what am I missing?

0 Replies
Varma_LC
Level 6
Level 6

current element set up is defaulting to one occurance....try using following...

<xs:element name="Position" type="xs:string" maxOccurs="unbounded" minOccurs="1"/>

Varma_LC
Level 6
Level 6

also your binging should look like ....

$.officeUseOnly.currentPosition[*].Position[*]