generating code from testListproperty.xml is giving schema error.

asked 2015-01-30 00:35:26 -0700

Bhagwatks gravatar image

updated 2015-08-26 09:53:58 -0700

ry.jones gravatar image
Linux Foundation Staff

Dear Sir,

when I am trying to generate code from the example cpp/tools/CPSAppGenerator/SampleXMLs/testListproperty.xml then the folloeing error comes .

python ./SampleXMLs/testListProperty.xml -p ../../samples/generated1/

Generating this xml will cause previously generated files to be deleted. Do you wish to continue? (y/n) (Default is n): y

Processing xmlfile: ./SampleXMLs/testListProperty.xml

./SampleXMLs/testListProperty.xml:36: element listProperty: Schemas validity error : Element '{}listProperty': This element is not expected. Expected is one of ( {}container, {}stringProperty, {}booleanProperty, {}dateProperty, {}timeProperty, {}scalarProperty, {}labelProperty, {}action ).
./SampleXMLs/testListProperty.xml fails to validate

ERROR - xml xsd validation did not pass

so I have checked all code and related thing but didn't getting the right answer to fix this .

Please help in this regard.

Thanks and Regards Bhagwat

edit retag flag offensive close merge delete


Please file a bug.

ry.jones ( 2015-03-05 10:37:38 -0700 )edit

Hi, me too have the same error. Too bad support for Alljoyn from the people around the globe.

anujtripathi.04 ( 2015-08-26 05:43:35 -0700 )edit

Hi Bhagwat, I just checked the testListProperty.xml. The xml is not in the correct format that the codegen accepts. Try the other sample xmls. I tried debugging that xml but no luck. I can help you with the direct cc/cpp code that is required for list/radio button/spinner property.

anujtripathi.04 ( 2015-09-02 01:23:19 -0700 )edit