I want to know how can i convert an XHTML doc into XSD which i can 开发者_运维百科further process.
E.g. If XHTML has two input boxes, same should be converted into XSD.
Thanks.
I see 2 ways, depending on what you are trying to achieve.
- Use a tool such as XMLSpy to generate (infer) the XSD from the XHTML, and fix it manually if required
- Manually write an XSL file to transform your XHTML in either simpler XML or in an XSD (much harder)
精彩评论