Application configuration files are based on configuration of an application.
<user id="babooey" on="cpu1">
<firstname>Bob</firstname>
<lastname>Abooey</lastname>
<department>adv</department>
<cell>555-1212</cell>
<address password="xxxx">ahunter@example1.com</address>
<address password="xxxx">babooey@example2.com</address>
</user>
babooey:
computer : cpu1
firstname: Bob
lastname: Abooey
cell: 555-1212
addresses:
- address: babooey@example1.com
password: xxxx
- address: babooey@example2.com
password: xxxx
Tags: java xml json cross-platform configuration-files
Source: By ninesided as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0
Related code-snippets:
- How do I convert a CSV into an XML file in Java?
- Is Object Property accessible from within object method?
- Generate list of all possible permutations of a string.
- What is the meaning of the type safety warning in some Java generics casts?
- What is the difference between Int and Integer in Java and C#?
- Which OS am I running on and how can I adapt it?
- How can I add custom button in Java?
- What do you need to do for XML files?
- What are the different methods to parse strings in Java?
- How do I install Debian in Windows?
- How do I get the inner xml of a XElement?
- Is it illegal to throw a Null parameter without a NullPointerException for that parameter?
- What tools are good for code analysis?
- How do I read from a file that is actually being written to?
- Why is Java autoboxing used only for method invocations and not classes. The type has a class and an operator and the methods are autoboxed, doesn't this mean revocations of the method can be invoked?