This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Original status: 3-Accepted; Suggested Status: NEW Original submitter: nvrijn Description: Create a "Profile" Schema reflecting a specific conforming instance document This is the 2nd of 3 RFEs filed to support the needs of schema librarians. Imagine a schema including the top level schema in a nested hierarchy of global type definitions as before, where there are a LOT of optional fields and "choices". Now, given that schema, and given a specific XML instance document, have a tool which AUTOMATICALLY flattens as before and then AUTOMATICALLY creates a compliant "profile" of that schema that EXACTLY matches the instance document. Specifically: If an optional element is in the document, the profile has it mandatory Otherwise, the element is not in the profile schema at all If a choice is present in the schema, collapse it in the profile schema to only the actual choice contained in the instance document. There may be other collapses possible. Goal is to allow greater interoperability between applications conforming to a standard schema, by providing a much "tighter" profile schema equivalent, which reflects the various trading partner agreements the communicating entities have agreed to. Each instance document that is conformant to the profile schema is conformant to the original ... but the reverse is certainly not the case. A critical validation tool. Today all this is done by hand ... again and again and again.
As mentioned in the Description, this is the 2nd of 3 enhancements filed to support the needs of "schema librarian." The other two enhancements are issue 78628 and issue 78677.