{"id":279685,"date":"2016-05-06T11:25:03","date_gmt":"2016-05-06T07:25:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279685"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279685","title":{"rendered":"\u041f\u0430\u0440\u0441\u0438\u043d\u0433 XML \u2014 \u0440\u0430\u0437 \u0438 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430"},"content":{"rendered":"<p>       \u041d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043a\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u044a\u0451\u043c\u043d\u044b\u0439 XML \u0444\u0430\u0439\u043b.  <\/p>\n<blockquote><p>\u0412\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u044d\u0442\u043e XMLReader, \u043d\u043e \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e-\u0442\u043e \u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \ud83d\ude42<\/p><\/blockquote>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:<\/p>\n<p>  1. Domit XML Class<br \/>  2. Simple XML<br \/>  3. DOM<br \/>  4. xml_parser (SAX)<br \/>  5. XMLReader<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  <b>Domit XML Class<\/b><\/p>\n<p>  \u041c\u0438\u043d\u0443\u0441\u044b: \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u0434\u0435\u0440\u0435\u0432\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432 ( \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 allowed memory size \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u0430)<\/p>\n<p>  \u041f\u043b\u044e\u0441\u044b: \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0441\u0442\u044c (\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e CMS, \u0432\u043a\u043b\u044e\u0447\u0430\u044f Joomle &lt;= 2.5 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0435\u0433\u043e \u0432 \u043d\u0430\u0431\u043e\u0440), \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u044b (\u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u0431\u044a\u0435\u043a\u0442)<\/p>\n<p>  <b>Simple XML<\/b><br \/>  \u041c\u0438\u043d\u0443\u0441\u044b: \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u043e\u043c \u0432\u0441\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u0441\u043c. domit)<br \/>  \u041f\u043b\u044e\u0441\u044b: \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 php 4<\/p>\n<p>  <b>DOM<\/b><br \/>  \u041c\u0438\u043d\u0443\u0441\u044b: \u0441\u043c. simple xml<br \/>  \u041f\u043b\u044e\u0441\u044b: \u0432\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 DOM J<\/p>\n<p>  \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 3 \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0438\u0437-\u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0446\u0435\u043b\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c, \u0442.\u043a. \u0444\u0430\u0439\u043b\u044b \u0443 \u043d\u0430\u0441 \u0431\u044b\u0432\u0430\u044e\u0442 \u043f\u043e 20-30 Mb, \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 (\u043c\u0430\u0441\u0441\u0438\u0432) \u0432 100&gt; Mb<\/p>\n<p>  <b>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445: xml_parser \u0438 XMLReader.<\/b><\/p>\n<p>  \u041e\u0431\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0442\u0435\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>  \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 xml_parser \u0438 XMLReader \u0432 \u0442\u043e\u043c \u0447\u0442\u043e, \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0438 \u043a\u043e\u043d\u0435\u0446 \u0442\u044d\u0433\u0430.<\/p>\n<p>  \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, xml_parser \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 2 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u2013 \u0442\u044d\u0433 \u043e\u0442\u043a\u0440\u044b\u0442, \u0442\u044d\u0433 \u0437\u0430\u043a\u0440\u044b\u0442. \u0415\u0433\u043e \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u0442 \u0447\u0442\u043e \u0442\u0430\u043c \u0438\u0434\u0451\u0442 \u0434\u0430\u043b\u044c\u0448\u0435, \u043a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0438 \u0442.\u0434. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u044b \u0437\u0430\u0434\u0430\u0451\u0442\u0435 2 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>  \u0412 XMLReader \u0432\u0441\u0451 \u043f\u0440\u043e\u0449\u0435. \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441. \u0412\u0441\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0443\u0436\u0435 \u0437\u0430\u0434\u0430\u043d\u044b \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438 (\u0438\u0445 \u0432\u0441\u0435\u0433\u043e 17), \u0447\u0442\u0435\u043d\u0438\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 read() \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u043f\u043e\u0434 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b. \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0430\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b (\u0430\u043b\u044f \u0442\u0440\u0438\u0433\u0433\u0435\u0440), \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u044d\u0433\u0430, \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0422\u0430\u043a\u0436\u0435 XMLReader \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438 \u0442\u044d\u0433\u043e\u0432.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f XMLReader<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;? Class QuizXMLReader{  \tvar $reader; \tvar $tag;  \tfunction QuizXMLReader(){  \t\t$this-&gt;reader = new XMLReader(); \t}  \t\/\/ read while result is whitespace \tfunction ignore_whitespace() \t{ \t\twhile ( $this-&gt;reader-&gt;nodeType == XMLReader::SIGNIFICANT_WHITESPACE ) \t\t\t$this-&gt;reader-&gt;read(); \t}  \t\/\/ if $ignoreDepth == 1 then will parse just first level, else parse 2th level too \t\/* \t * Example: \t * \t\t\tparseBlock('quiz_question'): \t * \t * \t\t\t\t&lt;quiz_question&gt; \t\t\t\t\t\t&lt;question_text&gt;&lt;![CDATA[]]&gt;&lt;\/question_text&gt; \t\t\t\t\t\t&lt;question_image&gt;&lt;![CDATA[]]&gt;&lt;\/question_image&gt; \t\t\t\t\t\t&lt;question_info&gt; \t\t\t\t\t\t\t&lt;question_date&gt;&lt;\/question_date&gt; \t\t\t\t\t\t\t&lt;question_rating&gt;&lt;\/question_rating&gt; \t\t\t\t\t\t&lt;\/question_info&gt; \t\t\t\t\t&lt;\/quiz_question&gt;  \t\t\t\t$ignoreDepth = 1 \t\t\t\treturn \t\t\t\t\tarray( \t\t\t\t\t\t\t[question_text] \t\t\t\t\t\t\t[question_image] \t\t\t\t\t)  \t\t\t\t$ignoreDepth = 0 \t\t\t\t\treturn \t\t\t\t\t\tarray( \t\t\t\t\t\t\t[question_text] \t\t\t\t\t\t\t[question_image] \t\t\t\t\t\t\t[question_info] = array ( \t\t\t\t\t\t\t\t\t\t\t\t[question_date] \t\t\t\t\t\t\t\t\t\t\t\t[question_rating] \t\t\t\t\t\t\t\t\t\t\t) \t\t\t\t\t\t) \t *\/ \tfunction parseBlock( $name, $ignoreDepth = 1 ) \t{ \t\tif ( $this-&gt;reader-&gt;name == $name && $this-&gt;reader-&gt;nodeType == XMLReader::ELEMENT ) \t\t{ \t\t\t$result = array(); \t\t\twhile ( !($this-&gt;reader-&gt;name == $name && $this-&gt;reader-&gt;nodeType == XMLReader::END_ELEMENT) ) \t\t\t{ \t\t\t\t\/\/echo $this-&gt;reader-&gt;name. ' - '.$this-&gt;reader-&gt;nodeType.&quot; - &quot;.$this-&gt;reader-&gt;depth.&quot;\\n&quot;; \t\t\t\tswitch($this-&gt;reader-&gt;nodeType){ \t\t\t\t\tcase 1: \t\t\t\t\t\tif ( $this-&gt;reader-&gt;depth &gt; 3 && !$ignoreDepth ) \t\t\t\t\t\t{ \t\t\t\t\t\t\t$result[ $nodeName ] = ( isset($result[ $nodeName ]) ? $result[ $nodeName ] : array() ); \t\t\t\t\t\t\twhile ( !($this-&gt;reader-&gt;name == $nodeName && $this-&gt;reader-&gt;nodeType == XMLReader::END_ELEMENT) ) \t\t\t\t\t\t\t{ \t\t\t\t\t\t\t\t$resultSubBlock = $this-&gt;parseBlock($this-&gt;reader-&gt;name, 1);  \t\t\t\t\t\t\t\tif ( !empty($resultSubBlock) ) \t\t\t\t\t\t\t\t\t$result[ $nodeName ][] = $resultSubBlock;  \t\t\t\t\t\t\t\tunset($resultSubBlock); \t\t\t\t\t\t\t\t$this-&gt;reader-&gt;read(); \t\t\t\t\t\t\t} \t\t\t\t\t\t} \t\t\t\t\t\t$nodeName = $this-&gt;reader-&gt;name; \t\t\t\t\t\tif($this-&gt;reader-&gt;hasAttributes){ \t\t\t\t\t\t\t$attributeCount = $this-&gt;reader-&gt;attributeCount;  \t\t\t\t\t\t\tfor($i = 0; $i &lt; $attributeCount; $i++){ \t\t\t\t\t\t\t\t$this-&gt;reader-&gt;moveToAttributeNo($i); \t\t\t\t\t\t\t\t$result['attr'][$this-&gt;reader-&gt;name] = $this-&gt;reader-&gt;value; \t\t\t\t\t\t\t} \t\t\t\t\t\t\t$this-&gt;reader-&gt;moveToElement(); \t\t\t\t\t\t} \t\t\t\t\tbreak;  \t\t\t\t\tcase 3: case 4: \t\t\t\t\t\t$result[$nodeName] = $this-&gt;reader-&gt;value; \t\t\t\t\t\t$this-&gt;reader-&gt;read(); \t\t\t\t\t\tbreak; \t\t\t\t}  \t\t\t\t$this-&gt;reader-&gt;read(); \t\t\t} \t\t\treturn $result; \t\t} \t}  \tfunction quiz_categories()\t{  \t\tif ( $this-&gt;reader-&gt;name == 'quiz_categories' ) \t\t{ \t\t\t\/\/ while not found end tag read blocks \t\t\twhile ( !($this-&gt;reader-&gt;name == 'quiz_categories' && $this-&gt;reader-&gt;nodeType == XMLReader::END_ELEMENT) ) \t\t\t{ \t\t\t\t$quiz_category = $this-&gt;parseBlock('quiz_category'); \/\/DO SOMETHING \t\t\t\tunset($quiz_category); \t\t\t\t$this-&gt;reader-&gt;read(); \t\t\t}  \t\t\t$this-&gt;reader-&gt;read(); \t\t} \t}  \tfunction quiz_certificates() \t{ \t\tif ( $this-&gt;reader-&gt;name == 'quiz_certificates' ) \t\t{ \t\t\t$quiz_certificates = $this-&gt;parseBlock('quiz_certificates'); \/\/DO SOMETHING \t\t} \t}  \tfunction parse($filename) {  \t\tif(!$filename) return array();  \t\t$this-&gt;reader = new XMLReader(); \t\t$this-&gt;reader-&gt;open($filename);  \t\t\/\/ begin read XML \t\twhile( $this-&gt;reader-&gt;read() ) {  \t\t\t$this-&gt;quiz_categories(); \t\t\t$this-&gt;quiz_certificates();  \t\t} \/\/ while \t} \/\/ func  }  $xmlr = new QuizXMLReader(); $r = $xmlr-&gt;parse('export.xml'); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <u>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430\u043c \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 XMLReader \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c xml_parser.<\/u><\/p>\n<p>  <i>\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a xml_reader:<\/i><br \/>  PHP 5.0 &gt;<br \/>  libxml<\/p>\n<p>  <i>\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a XMLReader:<\/i><br \/>  PHP 5.1<br \/>  libxml<\/p>\n<p>  P.S. \u0421\u043e\u0432\u0435\u0442\u044b \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0441 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u0432\u044b\u0441\u043b\u0443\u0448\u0430\u044e. \u041f\u0440\u043e\u0448\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u0438\u043d\u0430\u0442\u044c               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/283048\/\"> https:\/\/habrahabr.ru\/post\/283048\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043a\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u0431\u044a\u0451\u043c\u043d\u044b\u0439 XML \u0444\u0430\u0439\u043b.  <\/p>\n<blockquote><p>\u0412\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u044d\u0442\u043e XMLReader, \u043d\u043e \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e-\u0442\u043e \u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \ud83d\ude42<\/p><\/blockquote>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:<\/p>\n<p>  1. Domit XML Class<br \/>  2. Simple XML<br \/>  3. DOM<br \/>  4. xml_parser (SAX)<br \/>  5. XMLReader  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-279685","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279685"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279685\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}