Standards for Technology in Automotive Retail
Standards for Technology in Automotive Retail (STAR) is a nonprofit, dues-paying organization whose members include dealers, manufacturers, retail system providers, and automotive-related industry organizations. The goal of STAR is to use non-proprietary technology (IT)standards as a catalyst in fulfilling the business information needs of dealers and manufacturers while reducing the time and effort required to support related activities. Collectively, STAR develops voluntary industry standards and researches emerging technologies for the benefit of dealers. STAR is considered the IT standards organization for the retail automotive industry. STAR Objectives * To define the open, standard XML message formats for dealer-to-OEM communications (e.g, Parts Orders, Sales Leads, and Credit Applications). * To define an open, standard architecture to support the delivery of messages between dealers and OEMs. * To standardize the dealership IT infrastructure.
NuGet Package ID | LiquidTechnologies.XmlObjects.STAR5-3-4 |
---|---|
Description | An object model for the STAR 5.3.4 standard providing strongly typed classes that can be serialized/deserializsed to XML. |
Documentation | Liquid XML Objects API |
Schema Documentation | https://schemas.liquid-technologies.com/STAR/5.3.4/ |
Official Schema Site | http://www.starstandard.org/ |
License | EULA |
Supported Platforms |
|
- Create a new Visual Studio Project
- Add a reference to the nuget package @myModel.NugetID
-
Create an LxSerializer<> for your root element
- If the root element in your XML document is 'MyRoot' then the object generated to represent it should be called 'MyRootElm'*1
- Hint - In Visual Studio placing the caret within the code LxSerializer<MyRootElm> and pressing Alt-Shift-F10 will give you the option to add the appropriate using statement.
- Use the LxSerializer to read in the XML Document using the Deserialize method
- Setting a break point after this line will allow you to explore the structure of the object in the visual studio watch windows.
- Use the LxSerializer to write in the XML Document back out using the Serialize method
LxSerializer<ExamplePersonElm> serializer = LxSerializer<ExamplePersonElm>(); // Reading an XML file ExamplePersonElm person = serializer.Deserialize("MyPersonData.xml"); foreach(ExampleFriendElm friend in person.Friends) { Console.Write("Name = " + friend.Name); } // Edit the objects ExampleFriendElm newFriend = new ExampleFriendElm(); newFriend.Name = "Joe Blogs"; person.Friends.Add(newFriend); // Write the new data out as XML serializer.Serialize("MyNewPersonData.xml", person);
Video Tutorial
This video tutorial demonstrates the basic usage of the XML Objects tool, showing how to generate code from an XSD, read an XML document into the object model, modify the data and write out the XML.