framework available to convert XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vpt007
    New Member
    • Dec 2008
    • 3

    #1

    framework available to convert XML

    Hi Guyz,

    Is there any tool , framework available to convert the XML into different layout of the XML by refering the .XSD file. The field name and length would be matched with another .XSD called ex. (dictionary XSD). Pls help on this.


    Regards,
    Thiru
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Usually I would recommend XSLT. How does the one .XSD relate to the other? Are the field names exactly the same?

    If you're looking for a commercial tool, MapForce is a XSLT helper for dummies, doing relatively simple transforms.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      note that a .xsd file is used to check whether a xml file conforms to the schema described, not the other way round.

      Comment

      • vpt007
        New Member
        • Dec 2008
        • 3

        #4
        I need a frame work or set of libraries for a java project in which if I send a xml the libraries should validate with a .xsd file and give a XML output

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          to make one point clear (maybe there's a misunderstandin g) an .xsd file doesn't change the markup of an xml file. it just tells the parser, if the xml is valid or not.

          Comment

          • jkmyoung
            Recognized Expert Top Contributor
            • Mar 2006
            • 2057

            #6
            Try searching for java xml validation.
            XML Validation and XPath Evaluation in J2SE 5.0

            Also, the good part with this, is if you choose to use XSLT, you already have your XML document built to pass to the XSLT.

            Comment

            Working...