Closed joewiz closed 5 years ago
@joewiz the next release will have an updated jquery library can you try to reproduce with either the current head or the next release?
The following query works for me (exist 4.5.0 atom 1.33.0 atom-ex: 0.12.0)
xquery version "3.1";
import module namespace hc = 'http://expath.org/ns/http-client';
hc:send-request(<hc:request href="https://history.state.gov/open/frus-latest.xml" method="get"/>)
returns
<hc:response xmlns:hc="http://expath.org/ns/http-client" status="200" message="OK" spent-millis="1501">
<hc:header name="cache-control" value="max-age=300"/>
<hc:header name="cache-control" value="no-cache="set-cookie""/>
<hc:header name="content-type" value="text/xml;charset=utf-8"/>
<hc:header name="date" value="Sun, 09 Dec 2018 15:31:52 GMT"/>
<hc:header name="expires" value="Sun, 09 Dec 2018 15:36:52 GMT"/>
<hc:header name="server" value="nginx/1.12.1"/>
<hc:header name="set-cookie" value="AWSELB=DF3DF3131A3B5A346363EB1AB82654160644E8227C298C9EE89549313D0D91DE903E91ED1DA192BECC93A380DCC30525256BA2F6416763ADC2F553BFD3E4B5750299775BB7;PATH=/;MAX-AGE=86400"/>
<hc:header name="strict-transport-security" value="max-age=31557600; includeSubdomains"/>
<hc:header name="vary" value="Accept-Encoding, User-Agent"/>
<hc:header name="x-proxy-cache" value="MISS"/>
<hc:header name="x-ua-compatible" value="IE=Edge"/>
<hc:header name="x-xquery-cached" value="false"/>
<hc:header name="connection" value="keep-alive"/>
<hc:body media-type="text/xml"/>
</hc:response>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Foreign Relations of the United States: Latest Volumes</title>
<subtitle>The 10 most recently published volumes in the Foreign Relations of the United States series, sorted by year of publication.</subtitle>
<link href="https://history.state.gov/open/frus-latest.xml" rel="self"/>
<id>http://history.state.gov/atom/frus-metadata-v1</id>
<updated>2018-12-07T20:13:01.094Z</updated>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<entry>
<title>Foreign Relations of the United States, 1917–1972, Volume VII, Public Diplomacy, 1964–1968</title>
<id>https://history.state.gov/historicaldocuments/frus1917-72PubDipv07</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1917-72PubDipv07"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2018-12-07T10:10:38.988-05:00</published>
<updated>2018-12-07T10:10:38.988-05:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume documents the efforts of the Lyndon B. Johnson administration to craft public diplomacy and information policy during the middle period of the Cold War. A major emphasis is on the various ways the United States Information Agency (USIA) presented U.S. foreign policy objectives to global audiences during a time of great social upheaval within the United States, particularly during the Civil Rights movement. It also describes how the Johnson administration ensured both USIA and the Department of State utilized a variety of public diplomacy tools in the face of numerous crises that defined the 1960s. These crises included the assassination of John F. Kennedy and transition to the Johnson administration, the Dominican Republic intervention, the ongoing nuclear test-ban treaty negotiations, the Soviet invasion of Czechoslovakia, and, most significant, the Vietnam war, which was a dominant focus through Johnson’s presidency. Additional documentation chronicles the Johnson administration’s attempts to reassure the world of U.S. stability following Kennedy’s death, to promote a domestic policy during a period of tumult and great cultural change, and to advance the Department of State’s educational exchange activities, particularly with the Soviet Union and the developing world. (Published 2018-12-07. Editor: Charles V. Hawley. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1977–1980, Volume XVII, Part 2, Sub-Saharan Africa</title>
<id>https://history.state.gov/historicaldocuments/frus1977-80v17p2</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1977-80v17p2"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2011-10-14T14:41:52.237-04:00</published>
<updated>2011-10-14T14:41:52.237-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume is part of a Foreign Relations subseries that documents the foreign policy decisions of the administration of President Jimmy Carter. Parts 1 and 3 of Volume XVII address the Horn of Africa and North Africa, respectively. The focus of this volume is on the Carter administration’s approach to events in Africa. The first chapter addresses the administration’s attitude toward the continent as a whole, including an attempt to reconstruct U.S. foreign policy toward Africa while continuing its predecessors’ policy of countering Cuban and Soviet influence on the continent. (Published 2018-10-25. Editor: Louise P.Woodroofe. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, Iran, 1951–1954, Second Edition</title>
<id>https://history.state.gov/historicaldocuments/frus1951-54IranEd2</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1951-54IranEd2"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2018-10-30T07:24:25.691-05:00</published>
<updated>2018-10-30T07:24:25.691-05:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume is part of a sub-series that documents the foreign policies of the Harry S. Truman and Dwight D. Eisenhower administrations. The focus of this volume is on the Truman and Eisenhower administrations’ respective policies toward Iran, culminating in the overthrow of Iranian Prime Minister Dr. Mohammad Mossadeq in August 1953. Moreover, the volume documents the involvement of the U.S. intelligence community in the policy formulation process and places it within the broader Cold War context. This volume complements Foreign Relations of the United States, 1952–1954, Volume X, Iran, 1951–1954, published in 1989, by providing documentation on the use of covert operations by the Truman and Eisenhower administrations. This second edition incorporates two documents (Documents 148 and 149), that were released after the original declassification of the first edition in 2017. (Published 2018-10-18. Editor: James C. Van Hook. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1917–1972, Volume VIII, Public Diplomacy, 1969–1972</title>
<id>https://history.state.gov/historicaldocuments/frus1917-72PubDipv08</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1917-72PubDipv08"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2017-06-12T11:26:16.971-04:00</published>
<updated>2017-06-12T11:26:16.971-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>(Published 2018-09-28. Editor: Kristin L. Ahlberg. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1969–1976, Volume XIX, Part 2, Japan, 1969–1972</title>
<id>https://history.state.gov/historicaldocuments/frus1969-76v19p2</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1969-76v19p2"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2018-06-20T16:23:35.35-04:00</published>
<updated>2018-06-20T16:23:35.35-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume is part of a Foreign Relations subseries that documents the most important foreign policy issues of the Richard Nixon administration. It provides material on the administration’s efforts to adapt the U.S.-Japan Alliance in response to both an evolving bilateral context, with the strengthening of Japan’s political and economic institutions, and a changing international environment, in which the United States was seeking to reduce its military involvement in Indochina, to improve relations with the Soviet Union and the People’s Republic of China, and to realign an international economic system that had been created to address the challenges and concerns of the era following the Second World War. (Published 2018-06-20. Editors: David P. Nickles, Adam M. Howard. General Editor: Edward C. Keefer.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1977–1980, Volume IX, Arab-Israeli Dispute, August 1978–December 1980, Second, Revised Edition</title>
<id>https://history.state.gov/historicaldocuments/frus1977-80v09Ed2</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1977-80v09Ed2"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2018-05-29T07:24:25.691-05:00</published>
<updated>2018-05-29T07:24:25.691-05:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This revised edition incorporates critical material found since the publication of the first edition in 2014. This added material consists largely of personal handwritten notes taken at the September 5–17, 1978, Camp David summit by Samuel W. Lewis, the U.S. Ambassador to Israel from 1978 until 1985. Department of State historians found these notes while researching volumes for the administration of President Ronald Reagan, amidst Department material dating largely from the 1980s. Discovered subsequent to the initial publication of Foreign Relations, 1977–1980, volume IX, Arab-Israeli Dispute, August 1978–December 1980, these documents add significantly to the record of U.S. diplomacy at Camp David. While they do not alter substantively the portrait of U.S. diplomacy at the summit already represented in the first edition of the volume, this material enhances the documentary record. Department of State historians also located a more complete version of a document already published in the first edition. Sometime shortly after the summit’s completion on September 17, 1978, U.S. officials produced a draft day-by-day summary of the meetings held over its duration. Readers familiar with the first edition will note that the version of this summary document published in that edition covers most, but not all, of the summit. As a result of these discoveries, the decision was taken to issue a revised edition. (Published 2018-05-31. Editor: Alexander R. Wieland. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1917–1972, Volume VI, Public Diplomacy, 1961–1963</title>
<id>https://history.state.gov/historicaldocuments/frus1917-72PubDipv06</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1917-72PubDipv06"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2017-06-12T11:26:16.971-04:00</published>
<updated>2017-06-12T11:26:16.971-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume documents the public diplomacy efforts of the John F. Kennedy administration. A major emphasis of the volume is the role the United States Information Agency (USIA), led by Edward R. Murrow during this period, played in presenting U.S. foreign policy objectives to the world during a time of social change within the United States. The volume illustrates how USIA and the Department of State pursued public diplomacy against the backdrop of crises, including the Bay of Pigs invasion, the construction of the Berlin Wall, Laos, Vietnam, and the Cuban Missile Crisis. Additional documentation chronicles the Kennedy administration’s attempts to develop a national cultural policy, the importance of overseas polling, and the Department of State’s educational exchange activities. (Published 2017-12-05. Editors: Charles V. Hawley, Kristin L. Ahlberg. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1981–1988, Volume XLI, Global Issues II</title>
<id>https://history.state.gov/historicaldocuments/frus1981-88v41</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1981-88v41"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2011-11-30T14:17:34.328-04:00</published>
<updated>2011-11-30T14:17:34.328-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This volume is part of a subseries of volumes of the Foreign Relations series that documents the foreign policy decision making of the administration of President Ronald Reagan. This volume addresses the administration’s foreign policy toward a myriad of non-military issues, many of which have grown in relevancy since the 1980s. (Published 2017-11-30. Editor: Alexander O. Poster. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, Iran, 1951–1954</title>
<id>https://history.state.gov/historicaldocuments/frus1951-54Iran</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1951-54Iran"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2017-06-15T06:56:04.71-04:00</published>
<updated>2017-06-15T06:56:04.71-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>This quarterly release also includes the new publication Foreign Relations of the United States, Iran, 1951–1954. This volume complements Foreign Relations of the United States, 1952–1954, Volume X, Iran, 1951–1954, published in 1989, by providing documentation on the use of covert operations by the Truman and Eisenhower administrations. (Published 2017-06-15. Editor: James C. Van Hook. General Editor: Adam M. Howard.)</summary>
</entry>
<entry>
<title>Foreign Relations of the United States, 1977–1980, Volume XV, Central America</title>
<id>https://history.state.gov/historicaldocuments/frus1977-80v15</id>
<link type="text/html" href="https://history.state.gov/historicaldocuments/frus1977-80v15"/>
<author>
<name>Office of the Historian, Bureau of Public Affairs, United States Department of State</name>
</author>
<published>2017-06-07T05:54:18.479-04:00</published>
<updated>2017-06-07T05:54:18.479-04:00</updated>
<rights>Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.</rights>
<summary>The Carter administration’s policy toward Central America stressed human rights and non-interventionism with an aim to expand democracy in the region. Carter’s diplomats worked with Guatemala and Belize to secure a basis for Belize’s future independence from the United Kingdom. In Nicaragua, the Carter administration sought to advance political moderation as the Sandinista National Liberation Front rose against President Anastasio Somoza. After July 1979, Carter offered aid and counsel to the Government of National Reconstruction. Bilateral relations with Costa Rica were dominated by the events in Nicaragua due to Costa Rica’s territorial proximity, and then by the political situation in El Salvador. In Honduras, the United States advised the military Junta government to hold elections and broaden the representation within the government. In El Salvador, a military government faced growing popular opposition from the political left and right. Carter opted to offer military and economic aid in exchange for improvements in human rights practices and progress toward open elections. (Published 2017-06-07. Editor: Nathaniel L. Smith. General Editor: Adam M. Howard.)</summary>
</entry>
</feed>
@duncdrum Thanks, your code sample works for me. This was my mistake.
[Enter steps to reproduce:]
Atom: 1.14.3 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: existdb package 0.4.1
Stack Trace
Uncaught Error: Invalid XML:
Error found
Error found