Thread: Parse XML
View Single Post
  #3 (permalink)  
Old July 1st, 2009, 12:46 PM
bribon bribon is offline
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok, I'm working with Alfresco. I have one field which is categories in a web form. The web form get the structure from XSD, so I'd like to get the values of that field dynamicly. Thus, I thought I could use parse a XML inside the XSD, this way I can get the values dynamicly. The type of categories would be SimpleType.

This my categories right now:

<xs:simpleType name="categories">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="Commnications"/>
<xs:enumeration value="Collaboration"/>
<xs:enumeration value="Academic"/>
<xs:enumeration value="Community"/>
<xs:enumeration value="Student Informations Systems"/>
<xs:enumeration value="Administrative Systems"/>
<xs:enumeration value="Career"/>
</xs:restriction>
</xs:simpleType>

I'd like to parse all the values from external file, so I don't know if I can do it. I've looked for soluctions in Internet, but I haven't found anything.

Can someone help me out with any way to solve this problem?

Thanks

PD: I'm sorry for last post
Reply With Quote