Open
Description
The code that is generated with the -W flag does not include the values in the output JSON or XML. I tried this with my XML initially, but then with the examples that you provide. Here is a run of "test1" (minus the -f flag):
booty@limnognathia:gospace/src/github.com/gnewton/chidley$ ls
chidley data examples fqn.go jaxbTemplate.go mvnTemplate.go printGoStructVisitor.go source.go test_xml.sh xml
chidley.go decl.go extractor.go genericReader.go LICENSE node.go printJavaJaxbVisitor.go stdoutWriter.go util.go xml_source_test.go
codegenTemplates.go encoding_test.go fieldTemplate.go javaTypes.go makereadme nodeTypeInfo.go README.md tests_util.go util_test.go xml_test.go
booty@limnognathia:gospace/src/github.com/gnewton/chidley$ ./chidley -W xml/test1.xml > examples/test1/ChidTest1.go
booty@limnognathia:gospace/src/github.com/gnewton/chidley$ cd examples/test1/
booty@limnognathia:gospace/src/github.com/gnewton/chidley/examples/test1$ go build
booty@limnognathia:gospace/src/github.com/gnewton/chidley/examples/test1$ ls
ChidTest1.go test1
booty@limnognathia:gospace/src/github.com/gnewton/chidley/examples/test1$ ./test1 -x
<docs language="eng">
<doc type="book">
<author>
<firstName></firstName>
<last-name></last-name>
</author>
<title></title>
</doc>
<doc type="article">
<author>
<firstName></firstName>
<last-name></last-name>
</author>
<title></title>
</doc>
</docs>
booty@limnognathia:gospace/src/github.com/gnewton/chidley/examples/test1$ cat ../../xml/test1.xml
<?xml version="1.0"?>
<docs language="eng">
<doc type="book">
<title>Dune</title>
<author>
<last-name>Herbert</last-name>
<firstName>Frank</firstName>
</author>
</doc>
<doc type="article">
<title>Brave New Wold</title>
<author>
<last-name>Huxley</last-name>
<firstName>Aldous</firstName>
</author>
</doc>
</docs>
booty@limnognathia:gospace/src/github.com/gnewton/chidley/examples/test1$
The JSON output is similar in that the structure is all there, for the right number of elements, but the values themselves are missing.
Metadata
Metadata
Assignees
Labels
No labels