How to replace an "import" statement within an XML schema with the XSD content to be imported?

Asked

Viewed 155 times

1

I have the following XML Schema tag:

<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
    schemaLocation="xmldsig-core-schema20020212.xsd" />

And I’d like to know how to replace that import for its value in the XSD being imported. That is, instead of having two XSD schemas, just create one file. Simply "play" the content inside the other does not solve because I have tried, so as not to declare another tag <xsd:schema...>.

  • What are you trying to do with XSD? Why do you need to do this?

  • Sorry, brother. I don’t even remember. I believe I was trying to validate the file in some online tool and was giving error due to this dependency. I didn’t need it anymore anyway. Thank you.

  • Usually the online XML validation they ask to send the XSD together, so there is no need to add anything in the XML body concerning (at least the online tools I tested).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.