Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 2. XML Schema and the SOA Data M... > Validating an XML Document Against M...

2.9. Validating an XML Document Against Multiple Schemas

2.9.1. Problem

You have an XML document instance that uses elements from more than one namespace and you need to validate it.

2.9.2. Solution

Using the code from the last recipe, simply create a string array of the names of the schemas you need, and pass that to your DocumentBuilderFactory.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial