{"id":147,"date":"2008-10-20T10:08:42","date_gmt":"2008-10-20T14:08:42","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=147"},"modified":"2008-10-20T10:32:48","modified_gmt":"2008-10-20T14:32:48","slug":"instantiate-xmlgregoriancalendar","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=147","title":{"rendered":"Instantiate XMLGregorianCalendar"},"content":{"rendered":"<pre lang=\"java\">\r\nimport java.util.GregorianCalendar;\r\nimport javax.xml.datatype.DatatypeConfigurationException;\r\nimport javax.xml.datatype.DatatypeFactory;\r\nimport javax.xml.datatype.XMLGregorianCalendar;\r\n...\r\nXMLGregorianCalendar today = null;\r\ntry {\r\n  today = DatatypeFactory.newInstance()\r\n    .newXMLGregorianCalendar(\r\n        new GregorianCalendar(2008,10,1));\r\n} catch (DatatypeConfigurationException e) {\r\n  \/\/ TODO Auto-generated catch block\r\n  e.printStackTrace();\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>import java.util.GregorianCalendar; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.DatatypeFactory; import javax.xml.datatype.XMLGregorianCalendar; &#8230; XMLGregorianCalendar today = null; try { today = DatatypeFactory.newInstance() .newXMLGregorianCalendar( new GregorianCalendar(2008,10,1)); } catch (DatatypeConfigurationException e) { \/\/ TODO Auto-generated catch block e.printStackTrace(); }<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[32],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-xml"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-2n","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":0,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}