fix.
Fixed not closing struct. Fixed arrays. Type by default.
Merge pull request #1 from simon600/master

Fixed bugs.
call TrimSpace. Fixes #2
Fixes example
fix base64 bug
Merge pull request #3 from yangzhe1991/master

fix base64 bug
Fix a few parsing bugs:
Arguments building:
- Map and Struct: closing </struct> was missing.
- Slice: add ability to parse them like internal Array type.

Parsing :
- type valueNode: fix xml attributes attr and chardata to really be used as attributes.
- type boolean: added type.
Bugfix: Struct level handling. Now use a struct level detection to prevent a nextStart to jump to a higher struct level without stoping parsing current level.
Works well for now, but I'm not sure the static integer solution will scale well in multi access.
+ don't drop the last value : save the value before we can exit the loop (EOF case)
Use typed arguments for server call. I'm not sure about other sites but OpenSubtitles requires this option. This change query arguments to
<name>MyName</name><value><string>MyValue</string></value>
instead of
<name>MyName</name><value>MyValue</value>
add test + use io.Writer instead of string concats
skip unexported fields in Marshal
Marshall is ok, but Unmarshal cannot cope with arrays, yet
add Marshal code for time.Time
Marshal/Unmarshal works (seems to be) with simple structs
still has problems with ending array
multi-param call cannot be marshalled, yet
rewritten Unmarshal, take care of endelements, too
rename xmlrpc.go to marshal.go
add Fault marshaling