Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7607947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:47:45+00:00 2026-05-31T00:47:45+00:00

I am trying to find a way to query a RNG schema while avoiding

  • 0

I am trying to find a way to query a RNG schema while avoiding reinvention of the wheel, in order to answer basic questions such as: what elements are valid children of an XML instance element, what can/must be it’s attributes and so on.

A post here raised my hopes of doing this with Jing/Trang, since I am already doing RNG validation with Jing, but after searching around I’ve found no source code examples which would confirm the claim and browsing API docs also did not help me much (which in turn also seems to be the only documentation bundled with Jing).

I’d really like to avoid parsing schema into my own object model to do these queries and it also seems kinda redundant since I know Jing must also be doing it somewhere. The question is how to obtain the information I require from it.

Is there another library I could use to query RNG schema from java code? Note that I’m not trying to validate instance files by using a schema, I am trying to query the schema itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:47:46+00:00Added an answer on May 31, 2026 at 12:47 am

    The answer to this question would be to use RNGOM. It is an object model building API which is based on Jing. Since Jing does not expose it’s internal model is seems to be the only way to avoid complete reinvention of the wheel for this use-case. You will still have to write your own code which will make the actual queries by browsing this model (as I am attempting to do now).

    Learning how to utilize RNGOM is not trivial as can be seen here, but the project’s code repository should make things easier (contains examples of usage).

    I have unfortunately found no other library which would enable me to query a RNG schema (or at least ease the pain of doing it).

    Edit 1

    I ended up creating my own rng object model and a parser to generate it. It’s aimed to deal with my specific use case and allows me to make queries like the ones I posted in the question. Since no other answers were offered I shall accept my own until (if at all) a better answer is posted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find the best way to build a dynamic linq query
I am trying to find a way to query mongodb in a case insensitive
I'm trying to find the best way to query both news feed and wall
I'm trying to find a way to match a query to a regular expression
I have been trying to find a way to do this query using a
I'm trying to find the best way to format an sql query string. When
I'm trying to find a way to cause SQLAlchemy to generate a query of
I am trying to find a way to query rows of data by using
I'm trying to find a way to implement a Linq-to-Entities compiled query of the
I'm trying to find a way to convert this very complex SQL Query into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.