Am newbie to Tridion, I would like to parse an XML file and load its content into SDL Tridion 2011. can some help me on this.
I'm assuming from your question that your 'source' data is in separate XML files (or a large XML document) and you want to parse these (this) using Java and create new Components in Tridion with this content.
If this is the case, then there are lots of tutorials online for parsing the XML.
With regards to creating the new Components, you will want to use the Core Service. This is a Web service that allows applications to interact with the Content Manager. You can get started with this by checking out the Interacting with the Core Service from Java section of the online documentation.
You may also want to consider using Mihai's Core Service Java Client.
This should give you a good start.
Tridion uses structure of schema, which is nothing but actual xsd schema.
The import process can be divided into following steps:
- Based on xml file structure, create single or multiple schema (xsd). This can be manual step to create schema.
- Create component based on schema defined in step 1 and update the component content from xml file using core service.