roxliu / go-metaweblog Goto Github PK
View Code? Open in Web Editor NEWMetaWeblog Server to commit the blog to GitPages.
License: MIT License
MetaWeblog Server to commit the blog to GitPages.
License: MIT License
在解析请求的xml数据的时候,有两种格式不支持,导致解析出错了,无法把完整的数据解析出来。
一种是多数组的分类格式
<member>
<name>categories</name>
<value>
<array>
<data>
<value>
<string>其他</string>
</value>
<value>
<string>go开发</string>
</value>
</data>
</array>
</value>
</member>
另外一个就是日期格式:
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>20181214T06:16:34Z</dateTime.iso8601>
</value>
</member>
这个是我完整的发布文章的xml格式:
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param>
<value>
<string>1</string>
</value>
</param>
<param>
<value>
<string>admin</string>
</value>
</param>
<param>
<value>
<string>admin</string>
</value>
</param>
<param>
<value>
<struct>
<member>
<name>post_status</name>
<value>
<string>publish</string>
</value>
</member>
<member>
<name>post_type</name>
<value>
<string>post</string>
</value>
</member>
<member>
<name>categories</name>
<value>
<array>
<data>
<value>
<string>其他</string>
</value>
<value>
<string>开发</string>
</value>
</data>
</array>
</value>
</member>
<member>
<name>title</name>
<value>
<string>测试文档</string>
</value>
</member>
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>20181214T06:16:34Z</dateTime.iso8601>
</value>
</member>
<member>
<name>wp_slug</name>
<value>
<string>ce-shi-wen-dang</string>
</value>
</member>
<member>
<name>description</name>
<value>
<string><p>这个是测试文档</p></string>
</value>
</member>
<member>
<name>mt_keywords</name>
<value>
<string>乱七八糟</string>
</value>
</member>
</struct>
</value>
</param>
<param>
<value>
<boolean>1</boolean>
</value>
</param>
</params>
</methodCall>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.