No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Nupkg
src/TinyDSL.Xml
.gitignore
LICENSE
README.md
TinyDSL.sln
tiny_dsl_icon.png

README.md

TinyDSL

TinyDSL.Xml

Install: Install-Package TinyDSL.Xml
Usage Sample:

    class Program
    {
        static void Main(string[] args)
        {
            var xmlWrapper =
                XDC.New("root")
                    .A
                        .B(new
                        {
                            name = "jerry",
                            path = "path/to/home"
                        })
                            .C
                                .D
                                    .E("innerText")
                                    +
                                    XDC.New("F", new
                                    {
                                        name = "Tom"
                                    })
                                    .G
                                        .H
                                            .I;

            Console.WriteLine(xmlWrapper);
            Console.ReadLine();
        }
    }

output:

<root>
  <A>
    <B name="jerry" path="path/to/home">
      <C>
        <D>
          <E>innerText</E>
          <F name="Tom">
            <G>
              <H>
                <I />
              </H>
            </G>
          </F>
        </D>
      </C>
    </B>
  </A>
</root>

LICENSE

MIT