Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

XML Vaildation support in IntelliJ

Thread view: 
donghuad@gmail.com - 19 May 2006 00:18 GMT
Did anyone try to edit XML And XSD in intelliJ?

I wonder whether it support some XML validations, such as:

1) nillable=false
Although I defined an element should not be null, but it still allows
empty value.

2) xs:key
i tried to use "xs:key" to make the values of an element to be unique,
but seems no any effects..

Any advices will be highly appreciated!!

Any good XML Validator could be recommended?

-Dorothy
dorothyD - 19 May 2006 03:17 GMT
What i am trying to do is to check the uniqueness of "product" as
below:

<supported-products>
                       <product>m5</product>
                       <product>m10</product>
                       <product>m20</product>
                       <product>m40</product>
                       <product>m160</product>
                       <product>t640</product>
                       <product>t320</product>
</supported-products>

And I defined in XSD as below:

<xs:unique name="products-name-unique">
           <xs:selector xpath=".//supported-products"/>
           <xs:field xpath="./product/text()"/>
</xs:unique>

But it tells that

   Error:Error:line (62)c-general-xpath: The expression
'./product/text()' is not valid with respect to the XPath subset
supported by XML Schema.

Any suggestions???

Thanks !!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.